From 765cd7787e2b62abebd1bbdd81bb85567cbff799 Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Fri, 24 Oct 2025 16:29:40 +0300 Subject: [PATCH 1/3] feat(schema-compiler): Support time series queries in MySQL dialect in Tesseract (#10078) * fix formatInterval() as MySQL doesn't support milliseconds * more types * add ilike templates for tesseract * add time_series_* templates * update snapshots * add mysql + tesseract tests in CI * skip some tests for tesseract * cast as TIMESTAMP * skip some tests for tesseract * fix templates * skip some tests for tesseract * fix templates * update snapshots * fix skip tests --- .github/workflows/drivers-tests.yml | 2 + .../src/adapter/MysqlQuery.ts | 92 +- .../fixtures/mysql.json | 43 +- .../__snapshots__/mysql-full.test.ts.snap | 18848 +++++++++++----- 4 files changed, 13690 insertions(+), 5295 deletions(-) diff --git a/.github/workflows/drivers-tests.yml b/.github/workflows/drivers-tests.yml index c814f0efceca3..f9703134b349f 100644 --- a/.github/workflows/drivers-tests.yml +++ b/.github/workflows/drivers-tests.yml @@ -285,6 +285,8 @@ jobs: use_tesseract_sql_planner: true - database: databricks-jdbc use_tesseract_sql_planner: true + - database: mysql + use_tesseract_sql_planner: true fail-fast: false steps: diff --git a/packages/cubejs-schema-compiler/src/adapter/MysqlQuery.ts b/packages/cubejs-schema-compiler/src/adapter/MysqlQuery.ts index a57153fd2cb75..864f01598f36d 100644 --- a/packages/cubejs-schema-compiler/src/adapter/MysqlQuery.ts +++ b/packages/cubejs-schema-compiler/src/adapter/MysqlQuery.ts @@ -3,20 +3,21 @@ import { getEnv, parseSqlInterval } from '@cubejs-backend/shared'; import { BaseQuery } from './BaseQuery'; import { BaseFilter } from './BaseFilter'; import { UserError } from '../compiler/UserError'; +import { BaseTimeDimension } from './BaseTimeDimension'; const GRANULARITY_TO_INTERVAL = { - day: (date) => `DATE_FORMAT(${date}, '%Y-%m-%dT00:00:00.000')`, - week: (date) => `DATE_FORMAT(DATE_ADD('1900-01-01', INTERVAL TIMESTAMPDIFF(WEEK, '1900-01-01', ${date}) WEEK), '%Y-%m-%dT00:00:00.000')`, - hour: (date) => `DATE_FORMAT(${date}, '%Y-%m-%dT%H:00:00.000')`, - minute: (date) => `DATE_FORMAT(${date}, '%Y-%m-%dT%H:%i:00.000')`, - second: (date) => `DATE_FORMAT(${date}, '%Y-%m-%dT%H:%i:%S.000')`, - month: (date) => `DATE_FORMAT(${date}, '%Y-%m-01T00:00:00.000')`, - quarter: (date) => `DATE_ADD('1900-01-01', INTERVAL TIMESTAMPDIFF(QUARTER, '1900-01-01', ${date}) QUARTER)`, - year: (date) => `DATE_FORMAT(${date}, '%Y-01-01T00:00:00.000')` + day: (date: string) => `DATE_FORMAT(${date}, '%Y-%m-%dT00:00:00.000')`, + week: (date: string) => `DATE_FORMAT(DATE_ADD('1900-01-01', INTERVAL TIMESTAMPDIFF(WEEK, '1900-01-01', ${date}) WEEK), '%Y-%m-%dT00:00:00.000')`, + hour: (date: string) => `DATE_FORMAT(${date}, '%Y-%m-%dT%H:00:00.000')`, + minute: (date: string) => `DATE_FORMAT(${date}, '%Y-%m-%dT%H:%i:00.000')`, + second: (date: string) => `DATE_FORMAT(${date}, '%Y-%m-%dT%H:%i:%S.000')`, + month: (date: string) => `DATE_FORMAT(${date}, '%Y-%m-01T00:00:00.000')`, + quarter: (date: string) => `DATE_ADD('1900-01-01', INTERVAL TIMESTAMPDIFF(QUARTER, '1900-01-01', ${date}) QUARTER)`, + year: (date: string) => `DATE_FORMAT(${date}, '%Y-01-01T00:00:00.000')` }; class MysqlFilter extends BaseFilter { - public likeIgnoreCase(column, not, param, type) { + public likeIgnoreCase(column: string, not: boolean, param, type: string) { const p = (!type || type === 'contains' || type === 'ends') ? '%' : ''; const s = (!type || type === 'contains' || type === 'starts') ? '%' : ''; return `${column}${not ? ' NOT' : ''} LIKE CONCAT('${p}', ${this.allocateParam(param)}, '${s}')`; @@ -125,37 +126,44 @@ export class MysqlQuery extends BaseQuery { return `'${intervalParsed.hour}:${intervalParsed.minute}:${intervalParsed.second}' HOUR_SECOND`; } else if (intervalParsed.minute && intervalParsed.second && intKeys === 2) { return `'${intervalParsed.minute}:${intervalParsed.second}' MINUTE_SECOND`; + } else if (intervalParsed.hour && intKeys === 1) { + return `${intervalParsed.hour} HOUR`; + } else if (intervalParsed.minute && intKeys === 1) { + return `${intervalParsed.minute} MINUTE`; + } else if (intervalParsed.second && intKeys === 1) { + return `${intervalParsed.second} SECOND`; + } else if (intervalParsed.millisecond && intKeys === 1) { + // MySQL doesn't support MILLISECOND, use MICROSECOND instead (1ms = 1000μs) + return `${intervalParsed.millisecond * 1000} MICROSECOND`; } - // No need to support microseconds. - throw new Error(`Cannot transform interval expression "${interval}" to MySQL dialect`); } - public escapeColumnName(name) { + public escapeColumnName(name: string): string { return `\`${name}\``; } - public seriesSql(timeDimension) { + public seriesSql(timeDimension: BaseTimeDimension): string { const values = timeDimension.timeSeries().map( ([from, to]) => `select '${from}' f, '${to}' t` ).join(' UNION ALL '); return `SELECT TIMESTAMP(dates.f) date_from, TIMESTAMP(dates.t) date_to FROM (${values}) AS dates`; } - public concatStringsSql(strings) { + public concatStringsSql(strings: string[]): string { return `CONCAT(${strings.join(', ')})`; } - public unixTimestampSql() { + public unixTimestampSql(): string { return 'UNIX_TIMESTAMP()'; } - public wrapSegmentForDimensionSelect(sql) { + public wrapSegmentForDimensionSelect(sql: string): string { return `IF(${sql}, 1, 0)`; } - public preAggregationTableName(cube, preAggregationName, skipSchema) { + public preAggregationTableName(cube: string, preAggregationName: string, skipSchema: boolean): string { const name = super.preAggregationTableName(cube, preAggregationName, skipSchema); if (name.length > 64) { throw new UserError(`MySQL can not work with table names that longer than 64 symbols. Consider using the 'sqlAlias' attribute in your cube and in your pre-aggregation definition for ${name}.`); @@ -163,6 +171,14 @@ export class MysqlQuery extends BaseQuery { return name; } + public supportGeneratedSeriesForCustomTd(): boolean { + return true; + } + + public intervalString(interval: string): string { + return this.formatInterval(interval); + } + public sqlTemplates() { const templates = super.sqlTemplates(); // PERCENTILE_CONT works but requires PARTITION BY @@ -172,11 +188,51 @@ export class MysqlQuery extends BaseQuery { // NOTE: this template contains a comma; two order expressions are being generated templates.expressions.sort = '{{ expr }} IS NULL {% if nulls_first %}DESC{% else %}ASC{% endif %}, {{ expr }} {% if asc %}ASC{% else %}DESC{% endif %}'; delete templates.expressions.ilike; - templates.types.string = 'VARCHAR'; + templates.types.string = 'CHAR'; templates.types.boolean = 'TINYINT'; templates.types.timestamp = 'DATETIME'; delete templates.types.interval; templates.types.binary = 'BLOB'; + + templates.expressions.concat_strings = 'CONCAT({{ strings | join(\',\' ) }})'; + + templates.filters.like_pattern = 'CONCAT({% if start_wild %}\'%\'{% else %}\'\'{% endif %}, LOWER({{ value }}), {% if end_wild %}\'%\'{% else %}\'\'{% endif %})'; + templates.tesseract.ilike = 'LOWER({{ expr }}) {% if negated %}NOT {% endif %}LIKE {{ pattern }}'; + + templates.statements.time_series_select = 'SELECT TIMESTAMP(dates.f) date_from, TIMESTAMP(dates.t) date_to \n' + + 'FROM (\n' + + '{% for time_item in seria %}' + + ' select \'{{ time_item[0] }}\' f, \'{{ time_item[1] }}\' t \n' + + '{% if not loop.last %} UNION ALL\n{% endif %}' + + '{% endfor %}' + + ') AS dates'; + + templates.statements.generated_time_series_select = + 'WITH RECURSIVE date_series AS (\n' + + ' SELECT TIMESTAMP({{ start }}) AS date_from\n' + + ' UNION ALL\n' + + ' SELECT DATE_ADD(date_from, INTERVAL {{ granularity }})\n' + + ' FROM date_series\n' + + ' WHERE DATE_ADD(date_from, INTERVAL {{ granularity }}) <= TIMESTAMP({{ end }})\n' + + ')\n' + + 'SELECT CAST(date_from AS DATETIME) AS date_from,\n' + + ' CAST(DATE_SUB(DATE_ADD(date_from, INTERVAL {{ granularity }}), INTERVAL 1000 MICROSECOND) AS DATETIME) AS date_to\n' + + 'FROM date_series'; + + templates.statements.generated_time_series_with_cte_range_source = + 'WITH RECURSIVE date_series AS (\n' + + ' SELECT {{ range_source }}.{{ min_name }} AS date_from,\n' + + ' {{ range_source }}.{{ max_name }} AS max_date\n' + + ' FROM {{ range_source }}\n' + + ' UNION ALL\n' + + ' SELECT DATE_ADD(date_from, INTERVAL {{ granularity }}), max_date\n' + + ' FROM date_series\n' + + ' WHERE DATE_ADD(date_from, INTERVAL {{ granularity }}) <= max_date\n' + + ')\n' + + 'SELECT CAST(date_from AS DATETIME) AS date_from,\n' + + ' CAST(DATE_SUB(DATE_ADD(date_from, INTERVAL {{ granularity }}), INTERVAL 1000 MICROSECOND) AS DATETIME) AS date_to\n' + + 'FROM date_series'; + return templates; } } diff --git a/packages/cubejs-testing-drivers/fixtures/mysql.json b/packages/cubejs-testing-drivers/fixtures/mysql.json index 6cf977f9c3424..c0dd56f4690a2 100644 --- a/packages/cubejs-testing-drivers/fixtures/mysql.json +++ b/packages/cubejs-testing-drivers/fixtures/mysql.json @@ -174,11 +174,50 @@ "SQL API: Extended nested Rollup over asterisk", "SQL API: SQL push down push to cube quoted alias", "SQL API: Date/time comparison with date_trunc with SQL push down", + "SQL API: Rolling Window YTD (year + month + day + date_trunc equal)", + "SQL API: Rolling Window YTD (year + month + day + date_trunc IN)" + ], + "tesseractSkip": [ + "querying custom granularities ECommerce: count by three_months_by_march + no dimension", + "querying custom granularities ECommerce: count by three_months_by_march + dimension", + "querying BigECommerce: rolling window YTD (month + week)", + "querying BigECommerce: rolling window YTD (month + week + no gran)", + "---------------------------------------", - "Error during rewrite: Can't detect Cube query and it may be not supported yet.", + "SKIPPED SQL API (Need work)", "---------------------------------------", + "SQL API: reuse params", + "SQL API: Nested Rollup", + "SQL API: Nested Rollup with aliases", "SQL API: Rolling Window YTD (year + month + day + date_trunc equal)", - "SQL API: Rolling Window YTD (year + month + day + date_trunc IN)" + "SQL API: Rolling Window YTD (year + month + day + date_trunc IN)", + "SQL API: SQL push down push to cube quoted alias", + "SQL API: Date/time comparison with date_trunc with SQL push down", + + "---- Different results comparing to baseQuery version. Need to investigate ----", + "SQL API: Timeshift measure from cube", + "querying ECommerce: dimensions", + "querying ECommerce: dimensions + order", + "querying ECommerce: dimensions + limit", + "querying ECommerce: dimensions + total", + "querying ECommerce: dimensions + order + limit + total", + "querying ECommerce: dimensions + order + total + offset", + "querying ECommerce: dimensions + order + limit + total + offset", + "filtering ECommerce: contains dimensions, first", + "filtering ECommerce: contains dimensions, second", + "filtering ECommerce: startsWith + dimensions, first", + "filtering ECommerce: startsWith + dimensions, second", + "filtering ECommerce: endsWith + dimensions, first", + "filtering ECommerce: endsWith + dimensions, second", + "querying BigECommerce: rolling window YTD without date range", + "querying BigECommerce: rolling window YTD (month + week + day + no gran)", + "querying BigECommerce: rolling window YTD (month + week + day)", + "querying BigECommerce: rolling window YTD (month)", + "querying BigECommerce: rolling window by 2 month without date range", + "querying BigECommerce: rolling window by 2 month", + "querying BigECommerce: rolling window by 2 week", + "querying BigECommerce: rolling window by 2 day without date range", + "querying BigECommerce: rolling window by 2 day" ] } 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 e392a5a12f5b7..007c888373462 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 @@ -1,7457 +1,15465 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Date/time comparison with SQL push down 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Complex Rollup 1`] = ` Array [ Object { - "measure(BigECommerce.rollingCountBy2Day)": "12", + "SUM(ECommerce.count)": "1", + "city": "Detroit", + "orderDate": 2020-01-23T00:00:00.000Z, + "orderId": "CA-2017-145142", + "rowId": 523, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: NULLS FIRST/LAST SQL push down: nulls_first_last_sql_push_down 1`] = ` -Array [ Object { - "category": null, + "SUM(ECommerce.count)": "1", + "city": "Lorain", + "orderDate": 2020-01-01T00:00:00.000Z, + "orderId": "CA-2017-107503", + "rowId": 849, }, Object { - "category": "Office Supplies", + "SUM(ECommerce.count)": "1", + "city": "Olympia", + "orderDate": 2020-06-17T00:00:00.000Z, + "orderId": "CA-2017-118437", + "rowId": 1013, }, Object { - "category": "Technology", + "SUM(ECommerce.count)": "1", + "city": "Vancouver", + "orderDate": 2020-10-30T00:00:00.000Z, + "orderId": "CA-2017-139661", + "rowId": 1494, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Timeshift measure from cube 1`] = ` -Array [ Object { - "orderDate": 2020-02-01T00:00:00.000Z, - "totalQuantity": 2, - "totalQuantityPriorMonth": 6, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-06-25T00:00:00.000Z, + "orderId": "CA-2017-133648", + "rowId": 1995, }, Object { - "orderDate": 2020-03-01T00:00:00.000Z, - "totalQuantity": 13, - "totalQuantityPriorMonth": 2, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-09-23T00:00:00.000Z, + "orderId": "CA-2017-138422", + "rowId": 2329, }, Object { - "orderDate": 2020-04-01T00:00:00.000Z, - "totalQuantity": 3, - "totalQuantityPriorMonth": 13, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "orderDate": 2020-03-17T00:00:00.000Z, + "orderId": "CA-2017-140949", + "rowId": 2455, }, Object { - "orderDate": 2020-05-01T00:00:00.000Z, - "totalQuantity": 15, - "totalQuantityPriorMonth": 3, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-05-13T00:00:00.000Z, + "orderId": "CA-2017-149048", + "rowId": 2595, }, Object { - "orderDate": 2020-06-01T00:00:00.000Z, - "totalQuantity": 18, - "totalQuantityPriorMonth": 15, + "SUM(ECommerce.count)": "1", + "city": "Provo", + "orderDate": 2020-09-17T00:00:00.000Z, + "orderId": "CA-2017-112515", + "rowId": 2655, }, Object { - "orderDate": 2020-10-01T00:00:00.000Z, - "totalQuantity": 11, - "totalQuantityPriorMonth": 27, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-11-28T00:00:00.000Z, + "orderId": "CA-2017-123372", + "rowId": 2661, }, Object { - "orderDate": 2020-11-01T00:00:00.000Z, - "totalQuantity": 43, - "totalQuantityPriorMonth": 11, + "SUM(ECommerce.count)": "1", + "city": "Glendale", + "orderDate": 2020-11-12T00:00:00.000Z, + "orderId": "CA-2017-134915", + "rowId": 2952, }, Object { - "orderDate": 2020-12-01T00:00:00.000Z, - "totalQuantity": 22, - "totalQuantityPriorMonth": 43, + "SUM(ECommerce.count)": "1", + "city": "San Francisco", + "orderDate": 2020-10-19T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3059, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` -Array [ Object { - "a0": 41, + "SUM(ECommerce.count)": "1", + "city": "San Francisco", + "orderDate": 2020-10-19T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3060, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: post-aggregate percentage of total 1`] = ` -Array [ Object { - "SUM(BigECommerce.percentageOfTotalForStatus)": 100, + "SUM(ECommerce.count)": "1", + "city": "Louisville", + "orderDate": 2020-05-27T00:00:00.000Z, + "orderId": "US-2017-132297", + "rowId": 3083, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: powerbi min max push down: powerbi_min_max_push_down 1`] = ` -Array [ Object { - "a0": 2020-12-25T00:00:00.000Z, - "a1": 2020-01-01T00:00:00.000Z, + "SUM(ECommerce.count)": "1", + "city": "Auburn", + "orderDate": 2020-06-11T00:00:00.000Z, + "orderId": "CA-2017-102554", + "rowId": 3448, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: powerbi min max ungrouped flag: powerbi_min_max_ungrouped_flag 1`] = ` -Array [ Object { - "a0": "39", - "a1": 3.76, - "a2": 2399.96, + "SUM(ECommerce.count)": "1", + "city": "Omaha", + "orderDate": 2020-05-29T00:00:00.000Z, + "orderId": "CA-2017-144568", + "rowId": 3717, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: ungrouped pre-agg: ungrouped_pre_agg 1`] = ` -Array [ Object { - "productName": "Canon PC1080F Personal Copier", - "totalSales": 2399.96, + "SUM(ECommerce.count)": "1", + "city": "Bakersfield", + "orderDate": 2020-09-02T00:00:00.000Z, + "orderId": "CA-2017-123001", + "rowId": 3934, }, Object { - "productName": "Logitech di_Novo Edge Keyboard", - "totalSales": 2249.91, + "SUM(ECommerce.count)": "1", + "city": "Philadelphia", + "orderDate": 2020-11-21T00:00:00.000Z, + "orderId": "CA-2017-100811", + "rowId": 4012, }, Object { - "productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "totalSales": 2154.9, + "SUM(ECommerce.count)": "1", + "city": "Lafayette", + "orderDate": 2020-12-24T00:00:00.000Z, + "orderId": "CA-2017-124296", + "rowId": 4031, }, Object { - "productName": "Google Nexus 5", - "totalSales": 1979.89, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "orderDate": 2020-05-14T00:00:00.000Z, + "orderId": "CA-2017-115546", + "rowId": 4161, }, Object { - "productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "totalSales": 1292.94, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-11-11T00:00:00.000Z, + "orderId": "CA-2017-120327", + "rowId": 4227, }, Object { - "productName": "Canon PC1080F Personal Copier", - "totalSales": 1199.98, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-11-02T00:00:00.000Z, + "orderId": "CA-2017-143567", + "rowId": 4882, }, Object { - "productName": "Hewlett Packard 610 Color Digital Copier / Printer", - "totalSales": 899.982, + "SUM(ECommerce.count)": "1", + "city": "Detroit", + "orderDate": 2020-09-01T00:00:00.000Z, + "orderId": "CA-2017-145653", + "rowId": 5220, }, Object { - "productName": "Okidata C610n Printer", - "totalSales": 649, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-12-14T00:00:00.000Z, + "orderId": "CA-2017-147333", + "rowId": 5277, }, Object { - "productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "totalSales": 600, + "SUM(ECommerce.count)": "1", + "city": "Los Angeles", + "orderDate": 2020-06-03T00:00:00.000Z, + "orderId": "CA-2017-145772", + "rowId": 6125, }, Object { - "productName": "Google Nexus 6", - "totalSales": 539.97, + "SUM(ECommerce.count)": "1", + "city": "Marion", + "orderDate": 2020-12-01T00:00:00.000Z, + "orderId": "CA-2017-145660", + "rowId": 6205, }, Object { - "productName": "Google Nexus 7", - "totalSales": 539.97, + "SUM(ECommerce.count)": "1", + "city": "Oakland", + "orderDate": 2020-12-02T00:00:00.000Z, + "orderId": "CA-2017-102379", + "rowId": 6272, }, Object { - "productName": "Harbour Creations 67200 Series Stacking Chairs", - "totalSales": 498.26, + "SUM(ECommerce.count)": "1", + "city": "Baltimore", + "orderDate": 2020-05-14T00:00:00.000Z, + "orderId": "US-2017-133361", + "rowId": 6459, }, Object { - "productName": "DMI Eclipse Executive Suite Bookcases", - "totalSales": 400.784, + "SUM(ECommerce.count)": "1", + "city": "Arlington", + "orderDate": 2020-09-08T00:00:00.000Z, + "orderId": "US-2017-124779", + "rowId": 6651, }, Object { - "productName": "HTC One", - "totalSales": 239.976, + "SUM(ECommerce.count)": "1", + "city": "Houston", + "orderDate": 2020-03-26T00:00:00.000Z, + "orderId": "US-2017-141677", + "rowId": 7174, }, Object { - "productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", - "totalSales": 232.88, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-12-04T00:00:00.000Z, + "orderId": "CA-2017-109183", + "rowId": 7293, }, Object { - "productName": "Balt Solid Wood Rectangular Table", - "totalSales": 210.98, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "orderDate": 2020-06-10T00:00:00.000Z, + "orderId": "CA-2017-112172", + "rowId": 7310, }, Object { - "productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "totalSales": 180.96, + "SUM(ECommerce.count)": "1", + "city": "Philadelphia", + "orderDate": 2020-04-10T00:00:00.000Z, + "orderId": "CA-2017-135069", + "rowId": 7425, }, Object { - "productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "totalSales": 179.9, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-12-14T00:00:00.000Z, + "orderId": "CA-2017-151799", + "rowId": 7698, }, Object { - "productName": "Harbour Creations 67200 Series Stacking Chairs", - "totalSales": 128.124, + "SUM(ECommerce.count)": "1", + "city": "Lakewood", + "orderDate": 2020-10-12T00:00:00.000Z, + "orderId": "CA-2017-150091", + "rowId": 8425, }, Object { - "productName": "Harbour Creations 67200 Series Stacking Chairs", - "totalSales": 113.888, + "SUM(ECommerce.count)": "1", + "city": "Dallas", + "orderDate": 2020-11-06T00:00:00.000Z, + "orderId": "US-2017-119319", + "rowId": 8621, }, Object { - "productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "totalSales": 86.352, + "SUM(ECommerce.count)": "1", + "city": "Decatur", + "orderDate": 2020-02-16T00:00:00.000Z, + "orderId": "CA-2017-163265", + "rowId": 8673, }, Object { - "productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "totalSales": 71.6, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-06-15T00:00:00.000Z, + "orderId": "CA-2017-119284", + "rowId": 8697, }, Object { - "productName": "Linden 10 Round Wall Clock, Black", - "totalSales": 48.896, + "SUM(ECommerce.count)": "1", + "city": "Morristown", + "orderDate": 2020-09-17T00:00:00.000Z, + "orderId": "CA-2017-126928", + "rowId": 8878, }, Object { - "productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "totalSales": 45.92, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-12-25T00:00:00.000Z, + "orderId": "CA-2017-105620", + "rowId": 8958, }, Object { - "productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "totalSales": 45.92, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "orderDate": 2020-11-05T00:00:00.000Z, + "orderId": "CA-2017-102925", + "rowId": 9473, }, Object { - "productName": "Kingston Digital DataTraveler 16GB USB 2.0", - "totalSales": 44.75, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "orderDate": 2020-06-25T00:00:00.000Z, + "orderId": "CA-2017-116127", + "rowId": 9584, }, Object { - "productName": "Kingston Digital DataTraveler 16GB USB 2.1", - "totalSales": 44.75, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "orderDate": 2020-11-16T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9618, }, Object { - "productName": "Recycled Eldon Regeneration Jumbo File", - "totalSales": 39.296, + "SUM(ECommerce.count)": "1", + "city": "Bowling", + "orderDate": 2020-11-16T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9619, }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Date/time comparison with SQL push down 1`] = ` +Array [ Object { - "productName": "Linden 10 Round Wall Clock, Black", - "totalSales": 36.672, + "measure(BigECommerce.rollingCountBy2Day)": "12", }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Extended nested Rollup over asterisk 1`] = ` +Array [ Object { - "productName": "Linden 10 Round Wall Clock, Black", - "totalSales": 30.56, + "SUM(a.count)": "1", + "order": "CA-2017-100811", + "row": 4012, }, Object { - "productName": "Linden 10 Round Wall Clock, Black", - "totalSales": 30.56, + "SUM(a.count)": "1", + "order": "CA-2017-102379", + "row": 6272, }, Object { - "productName": "Anderson Hickey Conga Table Tops & Accessories", - "totalSales": 24.368, + "SUM(a.count)": "1", + "order": "CA-2017-102554", + "row": 3448, }, Object { - "productName": "Plymouth Boxed Rubber Bands by Plymouth", - "totalSales": 23.55, + "SUM(a.count)": "1", + "order": "CA-2017-102925", + "row": 9473, }, Object { - "productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "totalSales": 18.368, + "SUM(a.count)": "1", + "order": "CA-2017-105620", + "row": 8958, }, Object { - "productName": "Wausau Papers Astrobrights Colored Envelopes", - "totalSales": 14.352, + "SUM(a.count)": "1", + "order": "CA-2017-107503", + "row": 849, }, Object { - "productName": "Plymouth Boxed Rubber Bands by Plymouth", - "totalSales": 14.13, + "SUM(a.count)": "1", + "order": "CA-2017-109183", + "row": 7293, }, Object { - "productName": "Project Tote Personal File", - "totalSales": 14.03, + "SUM(a.count)": "1", + "order": "CA-2017-112172", + "row": 7310, }, Object { - "productName": "Plymouth Boxed Rubber Bands by Plymouth", - "totalSales": 11.304, + "SUM(a.count)": "1", + "order": "CA-2017-112515", + "row": 2655, }, Object { - "productName": "Magna Visual Magnetic Picture Hangers", - "totalSales": 9.64, + "SUM(a.count)": "1", + "order": "CA-2017-115546", + "row": 4161, }, Object { - "productName": "OIC #2 Pencils, Medium Soft", - "totalSales": 9.4, + "SUM(a.count)": "1", + "order": "CA-2017-116127", + "row": 9584, }, Object { - "productName": "Magna Visual Magnetic Picture Hangers", - "totalSales": 7.712, + "SUM(a.count)": "1", + "order": "CA-2017-118437", + "row": 1013, }, Object { - "productName": "OIC #2 Pencils, Medium Soft", - "totalSales": 3.76, + "SUM(a.count)": "1", + "order": "CA-2017-119284", + "row": 8697, }, Object { - "productName": "OIC #2 Pencils, Medium Soft", - "totalSales": 3.76, + "SUM(a.count)": "1", + "order": "CA-2017-120327", + "row": 4227, }, Object { - "productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "totalSales": null, + "SUM(a.count)": "1", + "order": "CA-2017-123001", + "row": 3934, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: contains + dimensions, first 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "SUM(a.count)": "1", + "order": "CA-2017-123372", + "row": 2661, }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "SUM(a.count)": "1", + "order": "CA-2017-124296", + "row": 4031, }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "SUM(a.count)": "1", + "order": "CA-2017-126928", + "row": 8878, }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "SUM(a.count)": "1", + "order": "CA-2017-131492", + "row": 3060, }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "SUM(a.count)": "1", + "order": "CA-2017-131492", + "row": 3059, }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "SUM(a.count)": "1", + "order": "CA-2017-133648", + "row": 1995, }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "SUM(a.count)": "1", + "order": "CA-2017-134915", + "row": 2952, }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "SUM(a.count)": "1", + "order": "CA-2017-135069", + "row": 7425, }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "SUM(a.count)": "1", + "order": "CA-2017-138422", + "row": 2329, }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "SUM(a.count)": "1", + "order": "CA-2017-139661", + "row": 1494, }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "SUM(a.count)": "1", + "order": "CA-2017-140949", + "row": 2455, }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "SUM(a.count)": "1", + "order": "CA-2017-143567", + "row": 4882, }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "SUM(a.count)": "1", + "order": "CA-2017-144568", + "row": 3717, }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "SUM(a.count)": "1", + "order": "CA-2017-145142", + "row": 523, }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "SUM(a.count)": "1", + "order": "CA-2017-145653", + "row": 5220, }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "SUM(a.count)": "1", + "order": "CA-2017-145660", + "row": 6205, }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "SUM(a.count)": "1", + "order": "CA-2017-145772", + "row": 6125, }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "SUM(a.count)": "1", + "order": "CA-2017-147333", + "row": 5277, }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "SUM(a.count)": "1", + "order": "CA-2017-149048", + "row": 2595, }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "SUM(a.count)": "1", + "order": "CA-2017-150091", + "row": 8425, }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "SUM(a.count)": "1", + "order": "CA-2017-151799", + "row": 7698, }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "SUM(a.count)": "1", + "order": "CA-2017-160633", + "row": 9619, }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "SUM(a.count)": "1", + "order": "CA-2017-160633", + "row": 9618, }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "SUM(a.count)": "1", + "order": "CA-2017-163265", + "row": 8673, }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "SUM(a.count)": "1", + "order": "US-2017-119319", + "row": 8621, }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "SUM(a.count)": "1", + "order": "US-2017-124779", + "row": 6651, }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "SUM(a.count)": "1", + "order": "US-2017-132297", + "row": 3083, }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "SUM(a.count)": "1", + "order": "US-2017-133361", + "row": 6459, }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "SUM(a.count)": "1", + "order": "US-2017-141677", + "row": 7174, }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: NULLS FIRST/LAST SQL push down: nulls_first_last_sql_push_down 1`] = ` +Array [ Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "category": null, }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "category": "Office Supplies", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "category": "Technology", }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Nested Rollup over asterisk 1`] = ` +Array [ Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "SUM(a.count)": "1", + "date": 2020-01-23T00:00:00.000Z, + "order": "CA-2017-145142", + "row": 523, }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "SUM(a.count)": "1", + "date": 2020-01-01T00:00:00.000Z, + "order": "CA-2017-107503", + "row": 849, }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "SUM(a.count)": "1", + "date": 2020-06-17T00:00:00.000Z, + "order": "CA-2017-118437", + "row": 1013, }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "SUM(a.count)": "1", + "date": 2020-10-30T00:00:00.000Z, + "order": "CA-2017-139661", + "row": 1494, }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "SUM(a.count)": "1", + "date": 2020-06-25T00:00:00.000Z, + "order": "CA-2017-133648", + "row": 1995, }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "SUM(a.count)": "1", + "date": 2020-09-23T00:00:00.000Z, + "order": "CA-2017-138422", + "row": 2329, }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "SUM(a.count)": "1", + "date": 2020-03-17T00:00:00.000Z, + "order": "CA-2017-140949", + "row": 2455, }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "SUM(a.count)": "1", + "date": 2020-05-13T00:00:00.000Z, + "order": "CA-2017-149048", + "row": 2595, }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "SUM(a.count)": "1", + "date": 2020-09-17T00:00:00.000Z, + "order": "CA-2017-112515", + "row": 2655, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: contains + dimensions, second 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "SUM(a.count)": "1", + "date": 2020-11-28T00:00:00.000Z, + "order": "CA-2017-123372", + "row": 2661, }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "SUM(a.count)": "1", + "date": 2020-11-12T00:00:00.000Z, + "order": "CA-2017-134915", + "row": 2952, }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "SUM(a.count)": "1", + "date": 2020-10-19T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3059, }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "SUM(a.count)": "1", + "date": 2020-10-19T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3060, }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "SUM(a.count)": "1", + "date": 2020-05-27T00:00:00.000Z, + "order": "US-2017-132297", + "row": 3083, }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "SUM(a.count)": "1", + "date": 2020-06-11T00:00:00.000Z, + "order": "CA-2017-102554", + "row": 3448, }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "SUM(a.count)": "1", + "date": 2020-05-29T00:00:00.000Z, + "order": "CA-2017-144568", + "row": 3717, }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "SUM(a.count)": "1", + "date": 2020-09-02T00:00:00.000Z, + "order": "CA-2017-123001", + "row": 3934, }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "SUM(a.count)": "1", + "date": 2020-11-21T00:00:00.000Z, + "order": "CA-2017-100811", + "row": 4012, }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "SUM(a.count)": "1", + "date": 2020-12-24T00:00:00.000Z, + "order": "CA-2017-124296", + "row": 4031, }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "SUM(a.count)": "1", + "date": 2020-05-14T00:00:00.000Z, + "order": "CA-2017-115546", + "row": 4161, }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "SUM(a.count)": "1", + "date": 2020-11-11T00:00:00.000Z, + "order": "CA-2017-120327", + "row": 4227, }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "SUM(a.count)": "1", + "date": 2020-11-02T00:00:00.000Z, + "order": "CA-2017-143567", + "row": 4882, }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "SUM(a.count)": "1", + "date": 2020-09-01T00:00:00.000Z, + "order": "CA-2017-145653", + "row": 5220, }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "SUM(a.count)": "1", + "date": 2020-12-14T00:00:00.000Z, + "order": "CA-2017-147333", + "row": 5277, }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "SUM(a.count)": "1", + "date": 2020-06-03T00:00:00.000Z, + "order": "CA-2017-145772", + "row": 6125, }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "SUM(a.count)": "1", + "date": 2020-12-01T00:00:00.000Z, + "order": "CA-2017-145660", + "row": 6205, }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "SUM(a.count)": "1", + "date": 2020-12-02T00:00:00.000Z, + "order": "CA-2017-102379", + "row": 6272, }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "SUM(a.count)": "1", + "date": 2020-05-14T00:00:00.000Z, + "order": "US-2017-133361", + "row": 6459, }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "SUM(a.count)": "1", + "date": 2020-09-08T00:00:00.000Z, + "order": "US-2017-124779", + "row": 6651, }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "SUM(a.count)": "1", + "date": 2020-03-26T00:00:00.000Z, + "order": "US-2017-141677", + "row": 7174, }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "SUM(a.count)": "1", + "date": 2020-12-04T00:00:00.000Z, + "order": "CA-2017-109183", + "row": 7293, }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "SUM(a.count)": "1", + "date": 2020-06-10T00:00:00.000Z, + "order": "CA-2017-112172", + "row": 7310, }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "SUM(a.count)": "1", + "date": 2020-04-10T00:00:00.000Z, + "order": "CA-2017-135069", + "row": 7425, }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "SUM(a.count)": "1", + "date": 2020-12-14T00:00:00.000Z, + "order": "CA-2017-151799", + "row": 7698, }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "SUM(a.count)": "1", + "date": 2020-10-12T00:00:00.000Z, + "order": "CA-2017-150091", + "row": 8425, }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "SUM(a.count)": "1", + "date": 2020-11-06T00:00:00.000Z, + "order": "US-2017-119319", + "row": 8621, }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "SUM(a.count)": "1", + "date": 2020-02-16T00:00:00.000Z, + "order": "CA-2017-163265", + "row": 8673, }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "SUM(a.count)": "1", + "date": 2020-06-15T00:00:00.000Z, + "order": "CA-2017-119284", + "row": 8697, }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "SUM(a.count)": "1", + "date": 2020-09-17T00:00:00.000Z, + "order": "CA-2017-126928", + "row": 8878, }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "SUM(a.count)": "1", + "date": 2020-12-25T00:00:00.000Z, + "order": "CA-2017-105620", + "row": 8958, }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "SUM(a.count)": "1", + "date": 2020-11-05T00:00:00.000Z, + "order": "CA-2017-102925", + "row": 9473, }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "SUM(a.count)": "1", + "date": 2020-06-25T00:00:00.000Z, + "order": "CA-2017-116127", + "row": 9584, }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "SUM(a.count)": "1", + "date": 2020-11-16T00:00:00.000Z, + "order": "CA-2017-160633", + "row": 9618, }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "SUM(a.count)": "1", + "date": 2020-11-16T00:00:00.000Z, + "order": "CA-2017-160633", + "row": 9619, }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Rolling Window YTD (year + month + day + date_trunc IN) 1`] = ` +Array [ Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-01-01T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-01-02T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-01-03T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-01-04T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-01-05T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-01-06T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: contains + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: endsWith filter + dimensions, first 1`] = ` -Array [ Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-01-07T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-01-08T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-01-09T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-01-10T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-01-11T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-01-12T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-01-13T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-01-14T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-01-15T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-01-16T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-01-17T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-01-18T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-01-19T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-01-20T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-01-21T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-01-22T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-01-23T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "orderDateD": 2020-01-24T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "orderDateD": 2020-01-25T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "orderDateD": 2020-01-26T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "orderDateD": 2020-01-27T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-01-28T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-01-29T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: endsWith filter + dimensions, second 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-01-30T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-01-31T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-02-01T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-02-02T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-02-03T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-02-04T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-02-05T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-02-06T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-02-07T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-02-08T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-02-09T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-02-10T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-02-11T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-02-12T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-02-13T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-02-14T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-02-15T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-02-16T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-02-17T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-02-18T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-02-19T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-02-20T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-02-21T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-02-22T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-02-23T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-02-24T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-02-25T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "orderDateD": 2020-02-26T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "orderDateD": 2020-02-27T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "orderDateD": 2020-02-28T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "orderDateD": 2020-02-29T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "orderDateD": 2020-03-01T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "orderDateD": 2020-03-02T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "orderDateD": 2020-03-03T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "orderDateD": 2020-03-04T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-03-05T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-03-06T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-03-07T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-03-08T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-03-09T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-03-10T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: endsWith filter + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notEndsWith filter + dimensions, first 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-03-11T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-03-12T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-03-13T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-03-14T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-03-15T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-03-16T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-03-17T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-03-18T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-03-19T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-03-20T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "orderDateD": 2020-03-21T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "orderDateD": 2020-03-22T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "orderDateD": 2020-03-23T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "orderDateD": 2020-03-24T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-03-25T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-03-26T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-03-27T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-03-28T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notEndsWith filter + dimensions, second 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notEndsWith filter + dimensions, third 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-03-29T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-03-30T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-03-31T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-04-01T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-04-02T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-04-03T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-04-04T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-04-05T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-04-06T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-04-07T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-04-08T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-04-09T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-04-10T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-04-11T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-04-12T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-04-13T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-04-14T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-04-15T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-04-16T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-04-17T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-04-18T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-04-19T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-04-20T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-04-21T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-04-22T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-04-23T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-04-24T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "orderDateD": 2020-04-25T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "orderDateD": 2020-04-26T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "orderDateD": 2020-04-27T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "orderDateD": 2020-04-28T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "orderDateD": 2020-04-29T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "orderDateD": 2020-04-30T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "orderDateD": 2020-05-01T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "orderDateD": 2020-05-02T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-05-03T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-05-04T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-05-05T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-05-06T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-05-07T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-05-08T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notStartsWith + dimensions, first 1`] = ` -Array [ Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-05-09T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-05-10T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-05-11T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-05-12T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-05-13T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "7", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-05-14T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-05-15T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-05-16T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-05-17T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-05-18T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-05-19T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-05-20T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-05-21T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-05-22T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-05-23T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-05-24T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-05-25T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-05-26T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-05-27T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "10", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-05-28T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "10", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-05-29T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-05-30T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-05-31T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "orderDateD": 2020-06-01T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "orderDateD": 2020-06-02T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "orderDateD": 2020-06-03T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "orderDateD": 2020-06-04T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "orderDateD": 2020-06-05T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "orderDateD": 2020-06-06T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "orderDateD": 2020-06-07T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "orderDateD": 2020-06-08T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-06-09T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-06-10T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "13", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-06-11T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "14", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-06-12T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "14", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-06-13T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "14", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-06-14T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "14", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notStartsWith + dimensions, second 1`] = ` -Array [ Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-06-15T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "15", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-06-16T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "15", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-06-17T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-06-18T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-06-19T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-06-20T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-06-21T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-06-22T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-06-23T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-06-24T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-06-25T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-06-26T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-06-27T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-06-28T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-06-29T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-06-30T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-07-01T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "orderDateD": 2020-07-02T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "orderDateD": 2020-07-03T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "orderDateD": 2020-07-04T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "orderDateD": 2020-07-05T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "orderDateD": 2020-07-06T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "orderDateD": 2020-07-07T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "orderDateD": 2020-07-08T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "orderDateD": 2020-07-09T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-07-10T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-07-11T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-07-12T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-07-13T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-07-14T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-07-15T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notStartsWith + dimensions, third 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-07-16T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-07-17T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-07-18T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-07-19T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-07-20T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-07-21T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-07-22T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-07-23T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-07-24T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-07-25T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-07-26T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-07-27T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-07-28T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-07-29T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-07-30T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-07-31T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-08-01T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-08-02T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-08-03T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-08-04T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-08-05T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-08-06T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-08-07T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-08-08T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-08-09T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-08-10T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-08-11T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "orderDateD": 2020-08-12T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "orderDateD": 2020-08-13T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "orderDateD": 2020-08-14T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "orderDateD": 2020-08-15T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "orderDateD": 2020-08-16T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "orderDateD": 2020-08-17T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "orderDateD": 2020-08-18T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "orderDateD": 2020-08-19T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-08-20T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-08-21T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-08-22T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-08-23T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-08-24T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-08-25T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: startsWith + dimensions, first 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-08-26T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-08-27T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-08-28T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-08-29T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: startsWith + dimensions, second 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-08-30T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-08-31T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-09-01T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "19", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-09-02T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-09-03T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-09-04T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-09-05T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-09-06T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-09-07T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-09-08T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: startsWith + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: contains dimensions, first 1`] = ` -Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "MC-17605", - "ECommerce.customerName": "Customer 31", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-01-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-145142", - "ECommerce.productName": "Balt Solid Wood Rectangular Table", - "ECommerce.profit": 21.098, - "ECommerce.quantity": 2, - "ECommerce.rowId": 523, - "ECommerce.sales": 210.98, - "ECommerce.subCategory": "Tables", + "orderDateD": 2020-09-09T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", - "ECommerce.profit": -3.3506, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3060, - "ECommerce.sales": 24.368, - "ECommerce.subCategory": "Tables", + "orderDateD": 2020-09-10T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: contains dimensions, second 1`] = ` -Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "MC-17605", - "ECommerce.customerName": "Customer 31", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-01-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-145142", - "ECommerce.productName": "Balt Solid Wood Rectangular Table", - "ECommerce.profit": 21.098, - "ECommerce.quantity": 2, - "ECommerce.rowId": 523, - "ECommerce.sales": 210.98, - "ECommerce.subCategory": "Tables", + "orderDateD": 2020-09-11T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lorain", - "ECommerce.customerId": "GA-14725", - "ECommerce.customerName": "Customer 19", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-107503", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 8.5568, - "ECommerce.quantity": 4, - "ECommerce.rowId": 849, - "ECommerce.sales": 48.896, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-12T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-30T00:00:00.000", - "ECommerce.orderId": "CA-2017-139661", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 3.6632, - "ECommerce.quantity": 2, - "ECommerce.rowId": 1494, - "ECommerce.sales": 9.64, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-13T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 10.3904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3059, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-14T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", - "ECommerce.profit": -3.3506, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3060, - "ECommerce.sales": 24.368, - "ECommerce.subCategory": "Tables", + "orderDateD": 2020-09-15T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Marion", - "ECommerce.customerId": "MG-17650", - "ECommerce.customerName": "Customer 32", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-12-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-145660", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 1.7352, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6205, - "ECommerce.sales": 7.712, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-16T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "BS-11755", - "ECommerce.customerName": "Customer 10", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-04-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-135069", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 6.4176, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7425, - "ECommerce.sales": 36.672, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-17T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Dallas", - "ECommerce.customerId": "LC-17050", - "ECommerce.customerName": "Customer 29", - "ECommerce.discount": 0.6, - "ECommerce.orderDate": "2020-11-06T00:00:00.000", - "ECommerce.orderId": "US-2017-119319", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": -19.864, - "ECommerce.quantity": 5, - "ECommerce.rowId": 8621, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-18T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: contains dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: endsWith + dimensions, first 1`] = ` -Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Marion", - "ECommerce.customerId": "MG-17650", - "ECommerce.customerName": "Customer 32", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-12-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-145660", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 1.7352, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6205, - "ECommerce.sales": 7.712, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-19T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "JH-15430", - "ECommerce.customerName": "Customer 23", - "ECommerce.discount": 0.5, - "ECommerce.orderDate": "2020-12-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-105620", - "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "ECommerce.profit": -7.2, - "ECommerce.quantity": 2, - "ECommerce.rowId": 8958, - "ECommerce.sales": 120, - "ECommerce.subCategory": "Machines", + "orderDateD": 2020-09-20T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: endsWith + dimensions, second 1`] = ` -Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "MC-17605", - "ECommerce.customerName": "Customer 31", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-01-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-145142", - "ECommerce.productName": "Balt Solid Wood Rectangular Table", - "ECommerce.profit": 21.098, - "ECommerce.quantity": 2, - "ECommerce.rowId": 523, - "ECommerce.sales": 210.98, - "ECommerce.subCategory": "Tables", + "orderDateD": 2020-09-21T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-30T00:00:00.000", - "ECommerce.orderId": "CA-2017-139661", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 3.6632, - "ECommerce.quantity": 2, - "ECommerce.rowId": 1494, - "ECommerce.sales": 9.64, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-22T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-138422", - "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", - "ECommerce.profit": 5.2026, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2329, - "ECommerce.sales": 14.352, - "ECommerce.subCategory": "Envelopes", + "orderDateD": 2020-09-23T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "DG-13300", - "ECommerce.customerName": "Customer 16", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-28T00:00:00.000", - "ECommerce.orderId": "CA-2017-123372", - "ECommerce.productName": "Google Nexus 5", - "ECommerce.profit": 494.9725, - "ECommerce.quantity": 11, - "ECommerce.rowId": 2661, - "ECommerce.sales": 1979.89, - "ECommerce.subCategory": "Phones", + "orderDateD": 2020-09-24T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 10.3904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3059, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-09-25T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", - "ECommerce.profit": -3.3506, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3060, - "ECommerce.sales": 24.368, - "ECommerce.subCategory": "Tables", + "orderDateD": 2020-09-26T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bakersfield", - "ECommerce.customerId": "AW-10840", - "ECommerce.customerName": "Customer 4", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-123001", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 2.726, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3934, - "ECommerce.sales": 9.4, - "ECommerce.subCategory": "Art", + "orderDateD": 2020-09-27T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "CC-12475", - "ECommerce.customerName": "Customer 12", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-21T00:00:00.000", - "ECommerce.orderId": "CA-2017-100811", - "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", - "ECommerce.profit": 3.9296, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4012, - "ECommerce.sales": 39.296, - "ECommerce.subCategory": "Storage", + "orderDateD": 2020-09-28T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Los Angeles", - "ECommerce.customerId": "SS-20140", - "ECommerce.customerName": "Customer 38", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-03T00:00:00.000", - "ECommerce.orderId": "CA-2017-145772", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", - "ECommerce.profit": 8.5025, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6125, - "ECommerce.sales": 44.75, - "ECommerce.subCategory": "Accessories", + "orderDateD": 2020-09-29T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Baltimore", - "ECommerce.customerId": "AJ-10780", - "ECommerce.customerName": "Customer 2", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "US-2017-133361", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6459, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "orderDateD": 2020-09-30T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "New York City", - "ECommerce.customerId": "MM-18280", - "ECommerce.customerName": "Customer 34", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-112172", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": 0.7065, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7310, - "ECommerce.sales": 14.13, - "ECommerce.subCategory": "Fasteners", + "orderDateD": 2020-10-01T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lakewood", - "ECommerce.customerId": "NP-18670", - "ECommerce.customerName": "Customer 35", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-12T00:00:00.000", - "ECommerce.orderId": "CA-2017-150091", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 129.294, - "ECommerce.quantity": 5, - "ECommerce.rowId": 8425, - "ECommerce.sales": 2154.9, - "ECommerce.subCategory": "Bookcases", + "orderDateD": 2020-10-02T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: endsWith + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: startsWith + dimensions, first 1`] = ` -Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Provo", - "ECommerce.customerId": "AS-10225", - "ECommerce.customerName": "Customer 3", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-112515", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 77.5764, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2655, - "ECommerce.sales": 1292.94, - "ECommerce.subCategory": "Bookcases", + "orderDateD": 2020-10-03T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bakersfield", - "ECommerce.customerId": "AW-10840", - "ECommerce.customerName": "Customer 4", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-123001", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 2.726, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3934, - "ECommerce.sales": 9.4, - "ECommerce.subCategory": "Art", + "orderDateD": 2020-10-04T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "AH-10465", - "ECommerce.customerName": "Customer 1", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-115546", - "ECommerce.productName": "Google Nexus 7", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 4161, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "orderDateD": 2020-10-05T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Baltimore", - "ECommerce.customerId": "AJ-10780", - "ECommerce.customerName": "Customer 2", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "US-2017-133361", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6459, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "orderDateD": 2020-10-06T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: startsWith + dimensions, second 1`] = ` -Array [ Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BM-11650", - "ECommerce.customerName": "Customer 8", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-13T00:00:00.000", - "ECommerce.orderId": "CA-2017-149048", - "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "ECommerce.profit": 81.432, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2595, - "ECommerce.sales": 180.96, - "ECommerce.subCategory": "Envelopes", + "orderDateD": 2020-10-07T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Provo", - "ECommerce.customerId": "AS-10225", - "ECommerce.customerName": "Customer 3", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-112515", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 77.5764, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2655, - "ECommerce.sales": 1292.94, - "ECommerce.subCategory": "Bookcases", + "orderDateD": 2020-10-08T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bakersfield", - "ECommerce.customerId": "AW-10840", - "ECommerce.customerName": "Customer 4", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-123001", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 2.726, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3934, - "ECommerce.sales": 9.4, - "ECommerce.subCategory": "Art", + "orderDateD": 2020-10-09T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "AH-10465", - "ECommerce.customerName": "Customer 1", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-115546", - "ECommerce.productName": "Google Nexus 7", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 4161, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "orderDateD": 2020-10-10T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Oakland", - "ECommerce.customerId": "BB-11545", - "ECommerce.customerName": "Customer 5", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-102379", - "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "ECommerce.profit": 44.975, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6272, - "ECommerce.sales": 179.9, - "ECommerce.subCategory": "Art", + "orderDateD": 2020-10-11T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Baltimore", - "ECommerce.customerId": "AJ-10780", - "ECommerce.customerName": "Customer 2", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "US-2017-133361", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6459, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "orderDateD": 2020-10-12T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Arlington", - "ECommerce.customerId": "BF-11020", - "ECommerce.customerName": "Customer 6", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-08T00:00:00.000", - "ECommerce.orderId": "US-2017-124779", - "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 15.498, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6651, - "ECommerce.sales": 45.92, - "ECommerce.subCategory": "Fasteners", + "orderDateD": 2020-10-13T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "BS-11755", - "ECommerce.customerName": "Customer 10", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-04-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-135069", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 6.4176, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7425, - "ECommerce.sales": 36.672, - "ECommerce.subCategory": "Furnishings", + "orderDateD": 2020-10-14T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BF-11170", - "ECommerce.customerName": "Customer 7", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-151799", - "ECommerce.productName": "Canon PC1080F Personal Copier", - "ECommerce.profit": 467.9922, - "ECommerce.quantity": 2, - "ECommerce.rowId": 7698, - "ECommerce.sales": 1199.98, - "ECommerce.subCategory": "Copiers", + "orderDateD": 2020-10-15T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BS-11380", - "ECommerce.customerName": "Customer 9", - "ECommerce.discount": 0.4, - "ECommerce.orderDate": "2020-11-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-160633", - "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", - "ECommerce.profit": 74.9985, - "ECommerce.quantity": 3, - "ECommerce.rowId": 9618, - "ECommerce.sales": 899.982, - "ECommerce.subCategory": "Copiers", + "orderDateD": 2020-10-16T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bowling", - "ECommerce.customerId": "BS-11380", - "ECommerce.customerName": "Customer 9", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-160633", - "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "ECommerce.profit": 5.397, - "ECommerce.quantity": 3, - "ECommerce.rowId": 9619, - "ECommerce.sales": 86.352, - "ECommerce.subCategory": "Art", + "orderDateD": 2020-10-17T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: startsWith + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: contains + dimensions + order, first 1`] = ` -Array [ Object { - "Products.category": "Furniture", - "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", - "Products.subCategory": "Tables", + "orderDateD": 2020-10-18T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "Products.category": "Furniture", - "Products.productName": "Balt Solid Wood Rectangular Table", - "Products.subCategory": "Tables", + "orderDateD": 2020-10-19T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: contains + dimensions + order, second 1`] = ` -Array [ Object { - "Products.category": "Furniture", - "Products.productName": "Linden 10 Round Wall Clock, Black", - "Products.subCategory": "Furnishings", + "orderDateD": 2020-10-20T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Products.category": "Furniture", - "Products.productName": "Magna Visual Magnetic Picture Hangers", - "Products.subCategory": "Furnishings", + "orderDateD": 2020-10-21T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Products.category": "Furniture", - "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", - "Products.subCategory": "Tables", + "orderDateD": 2020-10-22T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Products.category": "Furniture", - "Products.productName": "Balt Solid Wood Rectangular Table", - "Products.subCategory": "Tables", + "orderDateD": 2020-10-23T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: contains + dimensions + order, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: contains with special chars + dimensions 1`] = ` -Array [ Object { - "Products.productName": "Logitech di_Novo Edge Keyboard", + "orderDateD": 2020-10-24T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: endsWith filter + dimensions + order, first 1`] = ` -Array [ Object { - "Products.category": "Furniture", - "Products.productName": "DMI Eclipse Executive Suite Bookcases", - "Products.subCategory": "Bookcases", + "orderDateD": 2020-10-25T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Products.category": "Furniture", - "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "Products.subCategory": "Bookcases", + "orderDateD": 2020-10-26T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Products.category": "Furniture", - "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", - "Products.subCategory": "Tables", + "orderDateD": 2020-10-27T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Products.category": "Furniture", - "Products.productName": "Balt Solid Wood Rectangular Table", - "Products.subCategory": "Tables", + "orderDateD": 2020-10-28T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Products.category": "Office Supplies", - "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "Products.subCategory": "Envelopes", + "orderDateD": 2020-10-29T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Products.category": "Office Supplies", - "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", - "Products.subCategory": "Envelopes", + "orderDateD": 2020-10-30T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "28", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", - "Products.subCategory": "Accessories", + "orderDateD": 2020-10-31T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "28", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", - "Products.subCategory": "Accessories", + "orderDateD": 2020-11-01T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "28", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "Products.subCategory": "Accessories", + "orderDateD": 2020-11-02T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "29", }, Object { - "Products.category": "Technology", - "Products.productName": "Logitech di_Novo Edge Keyboard", - "Products.subCategory": "Accessories", + "orderDateD": 2020-11-03T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "29", }, Object { - "Products.category": "Technology", - "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "Products.subCategory": "Machines", + "orderDateD": 2020-11-04T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "29", }, Object { - "Products.category": "Technology", - "Products.productName": "Okidata C610n Printer", - "Products.subCategory": "Machines", + "orderDateD": 2020-11-05T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "30", }, Object { - "Products.category": "Technology", - "Products.productName": "Google Nexus 5", - "Products.subCategory": "Phones", + "orderDateD": 2020-11-06T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Products.category": "Technology", - "Products.productName": "Google Nexus 6", - "Products.subCategory": "Phones", + "orderDateD": 2020-11-07T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Products.category": "Technology", - "Products.productName": "Google Nexus 7", - "Products.subCategory": "Phones", + "orderDateD": 2020-11-08T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Products.category": "Technology", - "Products.productName": "HTC One", - "Products.subCategory": "Phones", + "orderDateD": 2020-11-09T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: endsWith filter + dimensions + order, second 1`] = ` -Array [ Object { - "Products.category": "Furniture", - "Products.productName": "DMI Eclipse Executive Suite Bookcases", - "Products.subCategory": "Bookcases", + "orderDateD": 2020-11-10T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Products.category": "Furniture", - "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "Products.subCategory": "Bookcases", + "orderDateD": 2020-11-11T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "32", }, Object { - "Products.category": "Furniture", - "Products.productName": "Linden 10 Round Wall Clock, Black", - "Products.subCategory": "Furnishings", + "orderDateD": 2020-11-12T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "33", }, Object { - "Products.category": "Furniture", - "Products.productName": "Magna Visual Magnetic Picture Hangers", - "Products.subCategory": "Furnishings", + "orderDateD": 2020-11-13T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "33", }, Object { - "Products.category": "Furniture", - "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", - "Products.subCategory": "Tables", + "orderDateD": 2020-11-14T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "33", }, Object { - "Products.category": "Furniture", - "Products.productName": "Balt Solid Wood Rectangular Table", - "Products.subCategory": "Tables", + "orderDateD": 2020-11-15T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "33", }, Object { - "Products.category": "Office Supplies", - "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "Products.subCategory": "Envelopes", + "orderDateD": 2020-11-16T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Products.category": "Office Supplies", - "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", - "Products.subCategory": "Envelopes", + "orderDateD": 2020-11-17T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", - "Products.subCategory": "Accessories", + "orderDateD": 2020-11-18T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", - "Products.subCategory": "Accessories", + "orderDateD": 2020-11-19T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "Products.subCategory": "Accessories", + "orderDateD": 2020-11-20T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Products.category": "Technology", - "Products.productName": "Logitech di_Novo Edge Keyboard", - "Products.subCategory": "Accessories", + "orderDateD": 2020-11-21T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Products.category": "Technology", - "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "Products.subCategory": "Machines", + "orderDateD": 2020-11-22T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Products.category": "Technology", - "Products.productName": "Okidata C610n Printer", - "Products.subCategory": "Machines", + "orderDateD": 2020-11-23T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Products.category": "Technology", - "Products.productName": "Google Nexus 5", - "Products.subCategory": "Phones", + "orderDateD": 2020-11-24T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Products.category": "Technology", - "Products.productName": "Google Nexus 6", - "Products.subCategory": "Phones", + "orderDateD": 2020-11-25T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Products.category": "Technology", - "Products.productName": "Google Nexus 7", - "Products.subCategory": "Phones", + "orderDateD": 2020-11-26T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Products.category": "Technology", - "Products.productName": "HTC One", - "Products.subCategory": "Phones", + "orderDateD": 2020-11-27T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: endsWith filter + dimensions + order, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: startsWith filter + dimensions + order, first 1`] = ` -Array [ Object { - "Products.category": "Office Supplies", - "Products.productName": "OIC #2 Pencils, Medium Soft", - "Products.subCategory": "Art", + "orderDateD": 2020-11-28T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "37", }, Object { - "Products.category": "Technology", - "Products.productName": "Okidata C610n Printer", - "Products.subCategory": "Machines", + "orderDateD": 2020-11-29T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "37", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: startsWith filter + dimensions + order, second 1`] = ` -Array [ Object { - "Products.category": "Office Supplies", - "Products.productName": "OIC #2 Pencils, Medium Soft", - "Products.subCategory": "Art", + "orderDateD": 2020-11-30T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "37", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", - "Products.subCategory": "Accessories", + "orderDateD": 2020-12-01T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "38", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", - "Products.subCategory": "Accessories", + "orderDateD": 2020-12-02T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "39", }, Object { - "Products.category": "Technology", - "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "Products.subCategory": "Accessories", + "orderDateD": 2020-12-03T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "39", }, Object { - "Products.category": "Technology", - "Products.productName": "Okidata C610n Printer", - "Products.subCategory": "Machines", + "orderDateD": 2020-12-04T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: startsWith filter + dimensions + order, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver pre-aggregations Customers: running total without time dimension 1`] = ` -Array [ Object { - "Customers.runningTotal": "41", + "orderDateD": 2020-12-05T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: filtering with possible casts 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.totalSales": 210.98, + "orderDateD": 2020-12-06T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.totalSales": 18.368, + "orderDateD": 2020-12-07T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.totalSales": 2471.56, + "orderDateD": 2020-12-08T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.totalSales": 36.672, + "orderDateD": 2020-12-09T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.totalSales": 1284.45, + "orderDateD": 2020-12-10T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.totalSales": 724.974, + "orderDateD": 2020-12-11T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.totalSales": 2451.472, + "orderDateD": 2020-12-12T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.totalSales": 2209.828, + "orderDateD": 2020-12-13T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.totalSales": 5573.922, + "orderDateD": 2020-12-14T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.totalSales": 2073.63, + "orderDateD": 2020-12-15T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: partitioned pre-agg with multi time dimension 1`] = ` -Array [ Object { - "BigECommerce.completedDate": "2020-01-02T00:00:00.000", - "BigECommerce.completedDate.day": "2020-01-02T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-01T00:00:00.000", + "orderDateD": 2020-12-16T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.completedDate": "2020-01-24T00:00:00.000", - "BigECommerce.completedDate.day": "2020-01-24T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-01-23T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-23T00:00:00.000", + "orderDateD": 2020-12-17T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.completedDate": "2020-02-17T00:00:00.000", - "BigECommerce.completedDate.day": "2020-02-17T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-02-16T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-16T00:00:00.000", + "orderDateD": 2020-12-18T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.completedDate": "2020-03-18T00:00:00.000", - "BigECommerce.completedDate.day": "2020-03-18T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-03-17T00:00:00.000", - "BigECommerce.orderDate.day": "2020-03-17T00:00:00.000", + "orderDateD": 2020-12-19T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.completedDate": "2020-03-27T00:00:00.000", - "BigECommerce.completedDate.day": "2020-03-27T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-03-26T00:00:00.000", - "BigECommerce.orderDate.day": "2020-03-26T00:00:00.000", + "orderDateD": 2020-12-20T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.completedDate": "2020-04-11T00:00:00.000", - "BigECommerce.completedDate.day": "2020-04-11T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-04-10T00:00:00.000", - "BigECommerce.orderDate.day": "2020-04-10T00:00:00.000", + "orderDateD": 2020-12-21T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.completedDate": "2020-05-14T00:00:00.000", - "BigECommerce.completedDate.day": "2020-05-14T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-05-13T00:00:00.000", - "BigECommerce.orderDate.day": "2020-05-13T00:00:00.000", + "orderDateD": 2020-12-22T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.completedDate": "2020-05-15T00:00:00.000", - "BigECommerce.completedDate.day": "2020-05-15T00:00:00.000", - "BigECommerce.count": "2", - "BigECommerce.orderDate": "2020-05-14T00:00:00.000", - "BigECommerce.orderDate.day": "2020-05-14T00:00:00.000", + "orderDateD": 2020-12-23T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "BigECommerce.completedDate": "2020-05-28T00:00:00.000", - "BigECommerce.completedDate.day": "2020-05-28T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-05-27T00:00:00.000", - "BigECommerce.orderDate.day": "2020-05-27T00:00:00.000", + "orderDateD": 2020-12-24T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "43", }, Object { - "BigECommerce.completedDate": "2020-05-30T00:00:00.000", - "BigECommerce.completedDate.day": "2020-05-30T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-05-29T00:00:00.000", - "BigECommerce.orderDate.day": "2020-05-29T00:00:00.000", + "orderDateD": 2020-12-25T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "BigECommerce.completedDate": "2020-06-04T00:00:00.000", - "BigECommerce.completedDate.day": "2020-06-04T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-06-03T00:00:00.000", - "BigECommerce.orderDate.day": "2020-06-03T00:00:00.000", + "orderDateD": 2020-12-26T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "BigECommerce.completedDate": "2020-06-11T00:00:00.000", - "BigECommerce.completedDate.day": "2020-06-11T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-06-10T00:00:00.000", - "BigECommerce.orderDate.day": "2020-06-10T00:00:00.000", + "orderDateD": 2020-12-27T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "BigECommerce.completedDate": "2020-06-12T00:00:00.000", - "BigECommerce.completedDate.day": "2020-06-12T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-06-11T00:00:00.000", - "BigECommerce.orderDate.day": "2020-06-11T00:00:00.000", + "orderDateD": 2020-12-28T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "BigECommerce.completedDate": "2020-06-16T00:00:00.000", - "BigECommerce.completedDate.day": "2020-06-16T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-06-15T00:00:00.000", - "BigECommerce.orderDate.day": "2020-06-15T00:00:00.000", + "orderDateD": 2020-12-29T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "BigECommerce.completedDate": "2020-06-18T00:00:00.000", - "BigECommerce.completedDate.day": "2020-06-18T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-06-17T00:00:00.000", - "BigECommerce.orderDate.day": "2020-06-17T00:00:00.000", + "orderDateD": 2020-12-30T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "BigECommerce.completedDate": "2020-06-26T00:00:00.000", - "BigECommerce.completedDate.day": "2020-06-26T00:00:00.000", - "BigECommerce.count": "2", - "BigECommerce.orderDate": "2020-06-25T00:00:00.000", - "BigECommerce.orderDate.day": "2020-06-25T00:00:00.000", + "orderDateD": 2020-12-31T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Rolling Window YTD (year + month + day + date_trunc equal) 1`] = ` +Array [ Object { - "BigECommerce.completedDate": "2020-09-02T00:00:00.000", - "BigECommerce.completedDate.day": "2020-09-02T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-09-01T00:00:00.000", + "orderDateD": 2020-01-01T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-09-03T00:00:00.000", - "BigECommerce.completedDate.day": "2020-09-03T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-09-02T00:00:00.000", - "BigECommerce.orderDate.day": "2020-09-02T00:00:00.000", + "orderDateD": 2020-01-02T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-09-09T00:00:00.000", - "BigECommerce.completedDate.day": "2020-09-09T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-09-08T00:00:00.000", - "BigECommerce.orderDate.day": "2020-09-08T00:00:00.000", + "orderDateD": 2020-01-03T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-09-18T00:00:00.000", - "BigECommerce.completedDate.day": "2020-09-18T00:00:00.000", - "BigECommerce.count": "2", - "BigECommerce.orderDate": "2020-09-17T00:00:00.000", - "BigECommerce.orderDate.day": "2020-09-17T00:00:00.000", + "orderDateD": 2020-01-04T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-09-24T00:00:00.000", - "BigECommerce.completedDate.day": "2020-09-24T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-09-23T00:00:00.000", - "BigECommerce.orderDate.day": "2020-09-23T00:00:00.000", + "orderDateD": 2020-01-05T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-10-13T00:00:00.000", - "BigECommerce.completedDate.day": "2020-10-13T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-10-12T00:00:00.000", - "BigECommerce.orderDate.day": "2020-10-12T00:00:00.000", + "orderDateD": 2020-01-06T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-10-20T00:00:00.000", - "BigECommerce.completedDate.day": "2020-10-20T00:00:00.000", - "BigECommerce.count": "2", - "BigECommerce.orderDate": "2020-10-19T00:00:00.000", - "BigECommerce.orderDate.day": "2020-10-19T00:00:00.000", + "orderDateD": 2020-01-07T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-01T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-01T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-10-30T00:00:00.000", - "BigECommerce.orderDate.day": "2020-10-30T00:00:00.000", + "orderDateD": 2020-01-08T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-03T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-03T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-11-02T00:00:00.000", - "BigECommerce.orderDate.day": "2020-11-02T00:00:00.000", + "orderDateD": 2020-01-09T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-06T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-06T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-11-05T00:00:00.000", - "BigECommerce.orderDate.day": "2020-11-05T00:00:00.000", + "orderDateD": 2020-01-10T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-07T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-07T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-11-06T00:00:00.000", - "BigECommerce.orderDate.day": "2020-11-06T00:00:00.000", + "orderDateD": 2020-01-11T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-12T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-12T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-11-11T00:00:00.000", - "BigECommerce.orderDate.day": "2020-11-11T00:00:00.000", + "orderDateD": 2020-01-12T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-13T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-13T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-11-12T00:00:00.000", - "BigECommerce.orderDate.day": "2020-11-12T00:00:00.000", + "orderDateD": 2020-01-13T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-17T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-17T00:00:00.000", - "BigECommerce.count": "2", - "BigECommerce.orderDate": "2020-11-16T00:00:00.000", - "BigECommerce.orderDate.day": "2020-11-16T00:00:00.000", + "orderDateD": 2020-01-14T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-22T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-22T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-11-21T00:00:00.000", - "BigECommerce.orderDate.day": "2020-11-21T00:00:00.000", + "orderDateD": 2020-01-15T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-11-29T00:00:00.000", - "BigECommerce.completedDate.day": "2020-11-29T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-11-28T00:00:00.000", - "BigECommerce.orderDate.day": "2020-11-28T00:00:00.000", + "orderDateD": 2020-01-16T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-12-02T00:00:00.000", - "BigECommerce.completedDate.day": "2020-12-02T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-12-01T00:00:00.000", + "orderDateD": 2020-01-17T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-12-03T00:00:00.000", - "BigECommerce.completedDate.day": "2020-12-03T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-12-02T00:00:00.000", - "BigECommerce.orderDate.day": "2020-12-02T00:00:00.000", + "orderDateD": 2020-01-18T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-12-05T00:00:00.000", - "BigECommerce.completedDate.day": "2020-12-05T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-12-04T00:00:00.000", - "BigECommerce.orderDate.day": "2020-12-04T00:00:00.000", + "orderDateD": 2020-01-19T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-12-15T00:00:00.000", - "BigECommerce.completedDate.day": "2020-12-15T00:00:00.000", - "BigECommerce.count": "2", - "BigECommerce.orderDate": "2020-12-14T00:00:00.000", - "BigECommerce.orderDate.day": "2020-12-14T00:00:00.000", + "orderDateD": 2020-01-20T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-12-25T00:00:00.000", - "BigECommerce.completedDate.day": "2020-12-25T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-12-24T00:00:00.000", - "BigECommerce.orderDate.day": "2020-12-24T00:00:00.000", + "orderDateD": 2020-01-21T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, Object { - "BigECommerce.completedDate": "2020-12-26T00:00:00.000", - "BigECommerce.completedDate.day": "2020-12-26T00:00:00.000", - "BigECommerce.count": "1", - "BigECommerce.orderDate": "2020-12-25T00:00:00.000", - "BigECommerce.orderDate.day": "2020-12-25T00:00:00.000", + "orderDateD": 2020-01-22T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "1", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month + week + day + no gran) 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-23T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-02T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-02T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-24T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-03T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-03T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-25T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-04T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-04T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-26T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-05T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-05T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-27T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-06T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-06T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-28T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-07T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-07T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-29T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-08T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-08T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-30T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-09T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-09T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-01-31T00:00:00.000Z, + "orderDateM": 2020-01-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-10T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-10T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-01T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-11T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-11T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-02T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-12T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-12T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-03T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-13T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-13T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-04T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-14T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-14T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-05T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-15T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-15T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-06T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-16T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-16T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-07T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-17T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-17T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-08T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-18T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-18T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-09T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-19T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-19T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-10T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-20T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-20T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-11T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-21T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-21T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-12T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-22T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-22T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-02-13T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-23T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-23T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-14T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-24T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-24T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-15T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "2", }, Object { - "BigECommerce.orderDate": "2020-01-25T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-25T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-16T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-01-26T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-26T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-17T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-01-27T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-18T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-01-28T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-28T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-19T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-01-29T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-29T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-20T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-01-30T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-30T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-21T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-01-31T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-31T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-22T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-23T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-02T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-02T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-24T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-03T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-03T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-25T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-04T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-04T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-26T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-05T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-05T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-27T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-06T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-06T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-28T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-07T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-07T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-02-29T00:00:00.000Z, + "orderDateM": 2020-02-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-08T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-08T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-03-01T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-09T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-09T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-03-02T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-10T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-10T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-03-03T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-11T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-11T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-03-04T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-12T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-12T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-03-05T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-13T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-13T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-03-06T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-14T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-14T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-03-07T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-15T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-15T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-03-08T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-16T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-16T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-09T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-17T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-17T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-10T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-18T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-18T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-11T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-19T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-19T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-12T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-20T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-20T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-13T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-21T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-21T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-14T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-22T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-22T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-15T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-23T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-23T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-16T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "3", }, Object { - "BigECommerce.orderDate": "2020-02-24T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-24T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-17T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "BigECommerce.orderDate": "2020-02-25T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-25T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-18T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "BigECommerce.orderDate": "2020-02-26T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-26T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-19T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "BigECommerce.orderDate": "2020-02-27T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-20T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "BigECommerce.orderDate": "2020-02-28T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-28T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-21T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "BigECommerce.orderDate": "2020-02-29T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-29T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-22T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-03-23T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month + week + day) 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-03-24T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "BigECommerce.orderDate": "2020-01-02T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-02T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-03-25T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "4", }, Object { - "BigECommerce.orderDate": "2020-01-03T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-03T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-03-26T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-04T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-04T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-03-27T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-05T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-05T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-03-28T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-06T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-06T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-03-29T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-07T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-07T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-03-30T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-08T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-08T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-03-31T00:00:00.000Z, + "orderDateM": 2020-03-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-09T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-09T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-01T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-10T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-10T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-02T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-11T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-11T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-03T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-12T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-12T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-04T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-13T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-13T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-05T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-14T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-14T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-06T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-15T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-15T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-07T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-16T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-16T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-08T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-17T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-17T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-09T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "5", }, Object { - "BigECommerce.orderDate": "2020-01-18T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-18T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-10T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-19T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-19T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-11T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-20T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-20T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-12T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-21T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-21T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-13T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-22T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-22T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 1, + "orderDateD": 2020-04-14T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-23T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-23T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-15T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-24T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-24T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-16T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-25T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-25T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-17T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-26T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-26T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-18T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-27T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-19T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-28T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-28T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-20T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-29T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-29T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-21T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-30T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-30T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-22T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-01-31T00:00:00.000", - "BigECommerce.orderDate.day": "2020-01-31T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-23T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-24T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-02T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-02T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-25T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-03T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-03T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-26T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-04T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-04T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-27T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-05T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-05T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-28T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-06T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-06T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-29T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-07T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-07T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-04-30T00:00:00.000Z, + "orderDateM": 2020-04-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-08T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-08T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-01T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-09T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-09T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-02T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-10T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-10T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-03T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-11T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-11T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-04T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-12T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-12T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-05T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-13T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-13T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-06T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-14T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-14T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-07T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-15T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-15T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-08T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-16T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-16T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-09T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-17T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-17T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-10T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-18T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-18T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-11T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-19T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-19T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-12T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "6", }, Object { - "BigECommerce.orderDate": "2020-02-20T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-20T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-13T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "7", }, Object { - "BigECommerce.orderDate": "2020-02-21T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-21T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-14T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-22T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-22T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-15T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-23T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-23T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-16T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-24T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-24T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-17T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-25T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-25T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-18T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-26T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-26T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-19T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-27T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-20T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-28T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-28T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-21T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-29T00:00:00.000", - "BigECommerce.orderDate.day": "2020-02-29T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-22T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.day": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-23T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month + week + no gran) 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2019-12-30T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-05-24T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-01-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-05-25T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-02-24T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 5, + "orderDateD": 2020-05-26T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "9", }, Object { - "BigECommerce.orderDate": "2020-03-30T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-03-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 6, + "orderDateD": 2020-05-27T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "10", }, Object { - "BigECommerce.orderDate": "2020-04-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-04-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 11, + "orderDateD": 2020-05-28T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "10", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-05-29T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "BigECommerce.orderDate": "2020-06-29T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-06-29T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-05-30T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "BigECommerce.orderDate": "2020-07-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-07-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-05-31T00:00:00.000Z, + "orderDateM": 2020-05-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "BigECommerce.orderDate": "2020-08-31T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-08-31T00:00:00.000", - "BigECommerce.rollingCountYTD": 24, + "orderDateD": 2020-06-01T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "BigECommerce.orderDate": "2020-09-28T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-09-28T00:00:00.000", - "BigECommerce.rollingCountYTD": 28, + "orderDateD": 2020-06-02T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "11", }, Object { - "BigECommerce.orderDate": "2020-10-26T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-10-26T00:00:00.000", - "BigECommerce.rollingCountYTD": 37, + "orderDateD": 2020-06-03T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "BigECommerce.orderDate": "2020-11-30T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-11-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 44, + "orderDateD": 2020-06-04T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month + week) 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2019-12-30T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-06-05T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "BigECommerce.orderDate": "2020-01-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-06-06T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "BigECommerce.orderDate": "2020-02-24T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", - "BigECommerce.rollingCountYTD": 5, + "orderDateD": 2020-06-07T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "BigECommerce.orderDate": "2020-03-30T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-03-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 6, + "orderDateD": 2020-06-08T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "BigECommerce.orderDate": "2020-04-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-04-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 11, + "orderDateD": 2020-06-09T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "12", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-06-10T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "13", }, Object { - "BigECommerce.orderDate": "2020-06-29T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-06-29T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-06-11T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "14", }, Object { - "BigECommerce.orderDate": "2020-07-27T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-07-27T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-06-12T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "14", }, Object { - "BigECommerce.orderDate": "2020-08-31T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-08-31T00:00:00.000", - "BigECommerce.rollingCountYTD": 24, + "orderDateD": 2020-06-13T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "14", }, Object { - "BigECommerce.orderDate": "2020-09-28T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-09-28T00:00:00.000", - "BigECommerce.rollingCountYTD": 28, + "orderDateD": 2020-06-14T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "14", }, Object { - "BigECommerce.orderDate": "2020-10-26T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-10-26T00:00:00.000", - "BigECommerce.rollingCountYTD": 37, + "orderDateD": 2020-06-15T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "15", }, Object { - "BigECommerce.orderDate": "2020-11-30T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.week": "2020-11-30T00:00:00.000", - "BigECommerce.rollingCountYTD": 44, + "orderDateD": 2020-06-16T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "15", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month) 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 2, + "orderDateD": 2020-06-17T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-06-18T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 5, + "orderDateD": 2020-06-19T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 6, + "orderDateD": 2020-06-20T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 11, + "orderDateD": 2020-06-21T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-06-22T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "BigECommerce.orderDate": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-06-23T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "BigECommerce.orderDate": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 18, + "orderDateD": 2020-06-24T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "16", }, Object { - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 24, + "orderDateD": 2020-06-25T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 28, + "orderDateD": 2020-06-26T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 37, + "orderDateD": 2020-06-27T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountYTD": 44, + "orderDateD": 2020-06-28T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD without granularity 1`] = ` -Array [ Object { - "BigECommerce.rollingCountYTD": 3, + "orderDateD": 2020-06-29T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window by 2 day 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-06-30T00:00:00.000Z, + "orderDateM": 2020-06-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-01T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-02T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-03T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-04T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-05T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-06T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-07T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-08T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": 1, + "orderDateD": 2020-07-09T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-10T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "orderDateD": 2020-07-11T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window by 2 month 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 2, + "orderDateD": 2020-07-12T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 3, + "orderDateD": 2020-07-13T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 3, + "orderDateD": 2020-07-14T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 3, + "orderDateD": 2020-07-15T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 6, + "orderDateD": 2020-07-16T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 12, + "orderDateD": 2020-07-17T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 7, + "orderDateD": 2020-07-18T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": null, + "orderDateD": 2020-07-19T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 6, + "orderDateD": 2020-07-20T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 10, + "orderDateD": 2020-07-21T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 13, + "orderDateD": 2020-07-22T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": 16, + "orderDateD": 2020-07-23T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window by 2 week 1`] = ` -Array [ Object { - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 1, + "orderDateD": 2020-07-24T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 1, + "orderDateD": 2020-07-25T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 1, + "orderDateD": 2020-07-26T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "orderDateD": 2020-07-27T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 2, + "orderDateD": 2020-07-28T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 3, + "orderDateD": 2020-07-29T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "orderDateD": 2020-07-30T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "orderDateD": 2020-07-31T00:00:00.000Z, + "orderDateM": 2020-07-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 3, + "orderDateD": 2020-08-01T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 3, + "orderDateD": 2020-08-02T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 2, + "orderDateD": 2020-08-03T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": 2, + "orderDateD": 2020-08-04T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: time series in rolling window 1`] = ` -Array [ Object { - "BigECommerce.customersCountPrev1Month": null, - "BigECommerce.orderDate": "2020-01-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "orderDateD": 2020-08-05T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 2, - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "orderDateD": 2020-08-06T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 1, - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "orderDateD": 2020-08-07T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 2, - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "orderDateD": 2020-08-08T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 1, - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "orderDateD": 2020-08-09T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 5, - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "orderDateD": 2020-08-10T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 7, - "BigECommerce.orderDate": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "orderDateD": 2020-08-11T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": null, - "BigECommerce.orderDate": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "orderDateD": 2020-08-12T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": null, - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "orderDateD": 2020-08-13T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 6, - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "orderDateD": 2020-08-14T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 4, - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "orderDateD": 2020-08-15T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "BigECommerce.customersCountPrev1Month": 9, - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "orderDateD": 2020-08-16T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + limit 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-08-17T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-08-18T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-08-19T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-08-20T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-08-21T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-08-22T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-08-23T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-08-24T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-08-25T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-08-26T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + order + limit + total + offset 1`] = ` -Array [ Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-08-27T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-08-28T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-08-29T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-08-30T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-08-31T00:00:00.000Z, + "orderDateM": 2020-08-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "18", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-09-01T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "19", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-09-02T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-09-03T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-09-04T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-09-05T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + order + limit + total 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-09-06T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-09-07T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "20", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-09-08T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-09-09T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-09-10T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-09-11T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-09-12T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-09-13T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-09-14T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-09-15T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + order 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-09-16T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "21", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-09-17T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-09-18T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-09-19T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-09-20T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-09-21T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-09-22T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "23", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-09-23T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-09-24T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-09-25T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-09-26T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-09-27T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-09-28T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-09-29T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-09-30T00:00:00.000Z, + "orderDateM": 2020-09-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-10-01T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-10-02T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-10-03T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-10-04T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-10-05T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-10-06T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-10-07T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-10-08T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-10-09T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-10-10T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-10-11T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "24", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-10-12T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "orderDateD": 2020-10-13T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "orderDateD": 2020-10-14T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "orderDateD": 2020-10-15T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "orderDateD": 2020-10-16T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "orderDateD": 2020-10-17T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "orderDateD": 2020-10-18T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "25", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "orderDateD": 2020-10-19T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "orderDateD": 2020-10-20T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-10-21T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-10-22T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-10-23T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-10-24T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-10-25T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-10-26T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + total 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-10-27T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-10-28T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-10-29T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "27", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-10-30T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "28", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-10-31T00:00:00.000Z, + "orderDateM": 2020-10-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "28", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-11-01T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "28", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-11-02T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "29", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-11-03T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "29", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-11-04T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "29", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-11-05T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "30", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-11-06T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-11-07T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-11-08T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-11-09T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-11-10T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "31", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-11-11T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "32", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-11-12T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "33", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-11-13T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "33", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-11-14T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "33", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-11-15T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "33", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-11-16T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-11-17T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-11-18T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-11-19T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-11-20T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "35", }, Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "orderDateD": 2020-11-21T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "orderDateD": 2020-11-22T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "orderDateD": 2020-11-23T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "orderDateD": 2020-11-24T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "orderDateD": 2020-11-25T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "orderDateD": 2020-11-26T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "orderDateD": 2020-11-27T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "36", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "orderDateD": 2020-11-28T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "37", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "orderDateD": 2020-11-29T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "37", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "orderDateD": 2020-11-30T00:00:00.000Z, + "orderDateM": 2020-11-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "37", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "orderDateD": 2020-12-01T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "38", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "orderDateD": 2020-12-02T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "39", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "orderDateD": 2020-12-03T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "39", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "orderDateD": 2020-12-04T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "orderDateD": 2020-12-05T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "orderDateD": 2020-12-06T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions 1`] = ` -Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "orderDateD": 2020-12-07T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "orderDateD": 2020-12-08T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "orderDateD": 2020-12-09T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "orderDateD": 2020-12-10T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "orderDateD": 2020-12-11T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "orderDateD": 2020-12-12T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "orderDateD": 2020-12-13T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "40", }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "orderDateD": 2020-12-14T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "orderDateD": 2020-12-15T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "orderDateD": 2020-12-16T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "orderDateD": 2020-12-17T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "orderDateD": 2020-12-18T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "orderDateD": 2020-12-19T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "orderDateD": 2020-12-20T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "orderDateD": 2020-12-21T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "orderDateD": 2020-12-22T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "orderDateD": 2020-12-23T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "42", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "orderDateD": 2020-12-24T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "43", }, Object { - "Customers.customerId": "GA-14725", - "Customers.customerName": "Customer 19", + "orderDateD": 2020-12-25T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "Customers.customerId": "GZ-14470", - "Customers.customerName": "Customer 20", + "orderDateD": 2020-12-26T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "Customers.customerId": "HH-15010", - "Customers.customerName": "Customer 21", + "orderDateD": 2020-12-27T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "Customers.customerId": "HK-14890", - "Customers.customerName": "Customer 22", + "orderDateD": 2020-12-28T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "Customers.customerId": "JH-15430", - "Customers.customerName": "Customer 23", + "orderDateD": 2020-12-29T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "Customers.customerId": "JO-15550", - "Customers.customerName": "Customer 24", + "orderDateD": 2020-12-30T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, Object { - "Customers.customerId": "JS-16030", - "Customers.customerName": "Customer 25", + "orderDateD": 2020-12-31T00:00:00.000Z, + "orderDateM": 2020-12-01T00:00:00.000Z, + "orderDateY": 2020-01-01T00:00:00.000Z, + "rollingCountYTD": "44", }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Rollup over exprs 1`] = ` +Array [ Object { - "Customers.customerId": "JW-15220", - "Customers.customerName": "Customer 26", + "SUM(ECommerce.count)": "1", + "city": "Detroit", + "order": 944.96, + "orderData": 2020-01-23T00:00:00.000Z, }, Object { - "Customers.customerId": "KL-16555", - "Customers.customerName": "Customer 27", + "SUM(ECommerce.count)": "1", + "city": "Lorain", + "order": 946.792, + "orderData": 2020-01-01T00:00:00.000Z, }, Object { - "Customers.customerId": "KN-16705", - "Customers.customerName": "Customer 28", + "SUM(ECommerce.count)": "1", + "city": "Olympia", + "order": 1041.06, + "orderData": 2020-06-17T00:00:00.000Z, }, Object { - "Customers.customerId": "LC-17050", - "Customers.customerName": "Customer 29", + "SUM(ECommerce.count)": "1", + "city": "Vancouver", + "order": 1513.28, + "orderData": 2020-10-30T00:00:00.000Z, }, Object { - "Customers.customerId": "LR-16915", - "Customers.customerName": "Customer 30", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 2017.608, + "orderData": 2020-06-25T00:00:00.000Z, }, Object { - "Customers.customerId": "MC-17605", - "Customers.customerName": "Customer 31", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 2357.704, + "orderData": 2020-09-23T00:00:00.000Z, }, Object { - "Customers.customerId": "MG-17650", - "Customers.customerName": "Customer 32", + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 2598.2, + "orderData": 2020-03-17T00:00:00.000Z, }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 2956.92, + "orderData": 2020-05-13T00:00:00.000Z, }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "SUM(ECommerce.count)": "1", + "city": "San Francisco", + "order": 3108.736, + "orderData": 2020-10-19T00:00:00.000Z, }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "SUM(ECommerce.count)": "1", + "city": "San Francisco", + "order": 3120.12, + "orderData": 2020-10-19T00:00:00.000Z, }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "SUM(ECommerce.count)": "1", + "city": "Glendale", + "order": 3179.776, + "orderData": 2020-11-12T00:00:00.000Z, }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "SUM(ECommerce.count)": "1", + "city": "Auburn", + "order": 3455.52, + "orderData": 2020-06-11T00:00:00.000Z, }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "SUM(ECommerce.count)": "1", + "city": "Omaha", + "order": 3764.1, + "orderData": 2020-05-29T00:00:00.000Z, }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "SUM(ECommerce.count)": "1", + "city": "Bakersfield", + "order": 3952.8, + "orderData": 2020-09-02T00:00:00.000Z, }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "SUM(ECommerce.count)": "1", + "city": "Philadelphia", + "order": 4090.592, + "orderData": 2020-11-21T00:00:00.000Z, }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "SUM(ECommerce.count)": "1", + "city": "Louisville", + "order": 4162.94, + "orderData": 2020-05-27T00:00:00.000Z, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: count by cities + order 1`] = ` -Array [ Object { - "ECommerce.city": "Columbus", - "ECommerce.count": 12, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 4318.84, + "orderData": 2020-11-11T00:00:00.000Z, }, Object { - "ECommerce.city": "New York City", - "ECommerce.count": 5, + "SUM(ECommerce.count)": "1", + "city": "Lafayette", + "order": 4496.76, + "orderData": 2020-12-24T00:00:00.000Z, }, Object { - "ECommerce.city": "Detroit", - "ECommerce.count": 2, + "SUM(ECommerce.count)": "1", + "city": "Provo", + "order": 5240.88, + "orderData": 2020-09-17T00:00:00.000Z, }, Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": 2, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 5240.94, + "orderData": 2020-05-14T00:00:00.000Z, }, Object { - "ECommerce.city": "San Francisco", - "ECommerce.count": 2, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 5366.5, + "orderData": 2020-12-14T00:00:00.000Z, }, Object { - "ECommerce.city": "Arlington", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Los Angeles", + "order": 6214.5, + "orderData": 2020-06-03T00:00:00.000Z, }, Object { - "ECommerce.city": "Auburn", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Detroit", + "order": 6216.52, + "orderData": 2020-09-01T00:00:00.000Z, }, Object { - "ECommerce.city": "Bakersfield", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Marion", + "order": 6220.424, + "orderData": 2020-12-01T00:00:00.000Z, }, Object { - "ECommerce.city": "Baltimore", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Baltimore", + "order": 6466.52, + "orderData": 2020-05-14T00:00:00.000Z, }, Object { - "ECommerce.city": "Bowling", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 6620.78, + "orderData": 2020-11-28T00:00:00.000Z, }, Object { - "ECommerce.city": "Dallas", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Oakland", + "order": 6631.8, + "orderData": 2020-12-02T00:00:00.000Z, }, Object { - "ECommerce.city": "Decatur", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Arlington", + "order": 6742.84, + "orderData": 2020-09-08T00:00:00.000Z, }, Object { - "ECommerce.city": "Glendale", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 7338.26, + "orderData": 2020-06-10T00:00:00.000Z, }, Object { - "ECommerce.city": "Houston", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Philadelphia", + "order": 7498.344, + "orderData": 2020-04-10T00:00:00.000Z, }, Object { - "ECommerce.city": "Lafayette", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 8591, + "orderData": 2020-12-04T00:00:00.000Z, }, Object { - "ECommerce.city": "Lakewood", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Dallas", + "order": 8682.12, + "orderData": 2020-11-06T00:00:00.000Z, }, Object { - "ECommerce.city": "Lorain", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Decatur", + "order": 8709.736, + "orderData": 2020-02-16T00:00:00.000Z, }, Object { - "ECommerce.city": "Los Angeles", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 9176.952, + "orderData": 2020-06-15T00:00:00.000Z, }, Object { - "ECommerce.city": "Louisville", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 9198, + "orderData": 2020-12-25T00:00:00.000Z, }, Object { - "ECommerce.city": "Marion", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 9381.82, + "orderData": 2020-11-02T00:00:00.000Z, }, Object { - "ECommerce.city": "Morristown", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 9729.248, + "orderData": 2020-11-05T00:00:00.000Z, }, Object { - "ECommerce.city": "Oakland", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Bowling", + "order": 9791.704, + "orderData": 2020-11-16T00:00:00.000Z, }, Object { - "ECommerce.city": "Olympia", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Morristown", + "order": 9838, + "orderData": 2020-09-17T00:00:00.000Z, }, Object { - "ECommerce.city": "Omaha", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 10097.96, + "orderData": 2020-12-14T00:00:00.000Z, }, Object { - "ECommerce.city": "Provo", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 10385.568, + "orderData": 2020-06-25T00:00:00.000Z, }, Object { - "ECommerce.city": "Vancouver", - "ECommerce.count": 1, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 11417.964, + "orderData": 2020-11-16T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Houston", + "order": 11973.92, + "orderData": 2020-03-26T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Lakewood", + "order": 12734.8, + "orderData": 2020-10-12T00:00:00.000Z, }, ] `; -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + limit 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Rollup with aliases 1`] = ` Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "MC-17605", - "ECommerce.customerName": "Customer 31", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-01-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-145142", - "ECommerce.productName": "Balt Solid Wood Rectangular Table", - "ECommerce.profit": 21.098, - "ECommerce.quantity": 2, - "ECommerce.rowId": 523, - "ECommerce.sales": 210.98, - "ECommerce.subCategory": "Tables", + "SUM(ECommerce.count)": "1", + "city": "Detroit", + "order": "CA-2017-145142", + "orderData": 2020-01-23T00:00:00.000Z, + "row": 523, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lorain", - "ECommerce.customerId": "GA-14725", - "ECommerce.customerName": "Customer 19", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-107503", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 8.5568, - "ECommerce.quantity": 4, - "ECommerce.rowId": 849, - "ECommerce.sales": 48.896, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "city": "Lorain", + "order": "CA-2017-107503", + "orderData": 2020-01-01T00:00:00.000Z, + "row": 849, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Olympia", - "ECommerce.customerId": "PF-19165", - "ECommerce.customerName": "Customer 36", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-118437", - "ECommerce.productName": "Project Tote Personal File", - "ECommerce.profit": 4.0687, - "ECommerce.quantity": 1, - "ECommerce.rowId": 1013, - "ECommerce.sales": 14.03, - "ECommerce.subCategory": "Storage", + "SUM(ECommerce.count)": "1", + "city": "Olympia", + "order": "CA-2017-118437", + "orderData": 2020-06-17T00:00:00.000Z, + "row": 1013, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-30T00:00:00.000", - "ECommerce.orderId": "CA-2017-139661", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 3.6632, - "ECommerce.quantity": 2, - "ECommerce.rowId": 1494, - "ECommerce.sales": 9.64, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "city": "Vancouver", + "order": "CA-2017-139661", + "orderData": 2020-10-30T00:00:00.000Z, + "row": 1494, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "ML-17755", - "ECommerce.customerName": "Customer 33", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-133648", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": -2.1195, - "ECommerce.quantity": 3, - "ECommerce.rowId": 1995, - "ECommerce.sales": 11.304, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-133648", + "orderData": 2020-06-25T00:00:00.000Z, + "row": 1995, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-138422", - "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", - "ECommerce.profit": 5.2026, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2329, - "ECommerce.sales": 14.352, - "ECommerce.subCategory": "Envelopes", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-138422", + "orderData": 2020-09-23T00:00:00.000Z, + "row": 2329, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "DB-13405", - "ECommerce.customerName": "Customer 15", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-03-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-140949", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "ECommerce.profit": 13.604, - "ECommerce.quantity": 8, - "ECommerce.rowId": 2455, - "ECommerce.sales": 71.6, - "ECommerce.subCategory": "Accessories", + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": "CA-2017-140949", + "orderData": 2020-03-17T00:00:00.000Z, + "row": 2455, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BM-11650", - "ECommerce.customerName": "Customer 8", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-13T00:00:00.000", - "ECommerce.orderId": "CA-2017-149048", - "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "ECommerce.profit": 81.432, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2595, - "ECommerce.sales": 180.96, - "ECommerce.subCategory": "Envelopes", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-149048", + "orderData": 2020-05-13T00:00:00.000Z, + "row": 2595, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Provo", - "ECommerce.customerId": "AS-10225", - "ECommerce.customerName": "Customer 3", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-112515", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 77.5764, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2655, - "ECommerce.sales": 1292.94, - "ECommerce.subCategory": "Bookcases", + "SUM(ECommerce.count)": "1", + "city": "Provo", + "order": "CA-2017-112515", + "orderData": 2020-09-17T00:00:00.000Z, + "row": 2655, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "DG-13300", - "ECommerce.customerName": "Customer 16", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-28T00:00:00.000", - "ECommerce.orderId": "CA-2017-123372", - "ECommerce.productName": "Google Nexus 5", - "ECommerce.profit": 494.9725, - "ECommerce.quantity": 11, - "ECommerce.rowId": 2661, - "ECommerce.sales": 1979.89, - "ECommerce.subCategory": "Phones", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-123372", + "orderData": 2020-11-28T00:00:00.000Z, + "row": 2661, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + order + limit + total + offset 1`] = ` -Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Glendale", - "ECommerce.customerId": "EM-14140", - "ECommerce.customerName": "Customer 18", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-12T00:00:00.000", - "ECommerce.orderId": "CA-2017-134915", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 9.9652, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2952, - "ECommerce.sales": 113.888, - "ECommerce.subCategory": "Chairs", + "SUM(ECommerce.count)": "1", + "city": "Glendale", + "order": "CA-2017-134915", + "orderData": 2020-11-12T00:00:00.000Z, + "row": 2952, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 10.3904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3059, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "city": "San Francisco", + "order": "CA-2017-131492", + "orderData": 2020-10-19T00:00:00.000Z, + "row": 3059, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", - "ECommerce.profit": -3.3506, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3060, - "ECommerce.sales": 24.368, - "ECommerce.subCategory": "Tables", + "SUM(ECommerce.count)": "1", + "city": "San Francisco", + "order": "CA-2017-131492", + "orderData": 2020-10-19T00:00:00.000Z, + "row": 3060, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Louisville", - "ECommerce.customerId": "DW-13480", - "ECommerce.customerName": "Customer 17", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-27T00:00:00.000", - "ECommerce.orderId": "US-2017-132297", - "ECommerce.productName": "Google Nexus 6", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 3083, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "SUM(ECommerce.count)": "1", + "city": "Louisville", + "order": "US-2017-132297", + "orderData": 2020-05-27T00:00:00.000Z, + "row": 3083, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Auburn", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-11T00:00:00.000", - "ECommerce.orderId": "CA-2017-102554", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3448, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "SUM(ECommerce.count)": "1", + "city": "Auburn", + "order": "CA-2017-102554", + "orderData": 2020-06-11T00:00:00.000Z, + "row": 3448, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Omaha", - "ECommerce.customerId": "JO-15550", - "ECommerce.customerName": "Customer 24", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-29T00:00:00.000", - "ECommerce.orderId": "CA-2017-144568", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": 1.1775, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3717, - "ECommerce.sales": 23.55, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "city": "Omaha", + "order": "CA-2017-144568", + "orderData": 2020-05-29T00:00:00.000Z, + "row": 3717, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bakersfield", - "ECommerce.customerId": "AW-10840", - "ECommerce.customerName": "Customer 4", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-123001", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 2.726, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3934, - "ECommerce.sales": 9.4, - "ECommerce.subCategory": "Art", + "SUM(ECommerce.count)": "1", + "city": "Bakersfield", + "order": "CA-2017-123001", + "orderData": 2020-09-02T00:00:00.000Z, + "row": 3934, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "CC-12475", - "ECommerce.customerName": "Customer 12", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-21T00:00:00.000", - "ECommerce.orderId": "CA-2017-100811", - "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", - "ECommerce.profit": 3.9296, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4012, - "ECommerce.sales": 39.296, - "ECommerce.subCategory": "Storage", + "SUM(ECommerce.count)": "1", + "city": "Philadelphia", + "order": "CA-2017-100811", + "orderData": 2020-11-21T00:00:00.000Z, + "row": 4012, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lafayette", - "ECommerce.customerId": "CS-12355", - "ECommerce.customerName": "Customer 14", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-24T00:00:00.000", - "ECommerce.orderId": "CA-2017-124296", - "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", - "ECommerce.profit": 60.5488, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4031, - "ECommerce.sales": 232.88, - "ECommerce.subCategory": "Chairs", + "SUM(ECommerce.count)": "1", + "city": "Lafayette", + "order": "CA-2017-124296", + "orderData": 2020-12-24T00:00:00.000Z, + "row": 4031, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "AH-10465", - "ECommerce.customerName": "Customer 1", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-115546", - "ECommerce.productName": "Google Nexus 7", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 4161, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": "CA-2017-115546", + "orderData": 2020-05-14T00:00:00.000Z, + "row": 4161, }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + order + limit + total 1`] = ` -Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "MC-17605", - "ECommerce.customerName": "Customer 31", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-01-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-145142", - "ECommerce.productName": "Balt Solid Wood Rectangular Table", - "ECommerce.profit": 21.098, - "ECommerce.quantity": 2, - "ECommerce.rowId": 523, - "ECommerce.sales": 210.98, - "ECommerce.subCategory": "Tables", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-120327", + "orderData": 2020-11-11T00:00:00.000Z, + "row": 4227, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lorain", - "ECommerce.customerId": "GA-14725", - "ECommerce.customerName": "Customer 19", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-107503", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 8.5568, - "ECommerce.quantity": 4, - "ECommerce.rowId": 849, - "ECommerce.sales": 48.896, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-143567", + "orderData": 2020-11-02T00:00:00.000Z, + "row": 4882, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Olympia", - "ECommerce.customerId": "PF-19165", - "ECommerce.customerName": "Customer 36", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-118437", - "ECommerce.productName": "Project Tote Personal File", - "ECommerce.profit": 4.0687, - "ECommerce.quantity": 1, - "ECommerce.rowId": 1013, - "ECommerce.sales": 14.03, - "ECommerce.subCategory": "Storage", + "SUM(ECommerce.count)": "1", + "city": "Detroit", + "order": "CA-2017-145653", + "orderData": 2020-09-01T00:00:00.000Z, + "row": 5220, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-30T00:00:00.000", - "ECommerce.orderId": "CA-2017-139661", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 3.6632, - "ECommerce.quantity": 2, - "ECommerce.rowId": 1494, - "ECommerce.sales": 9.64, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-147333", + "orderData": 2020-12-14T00:00:00.000Z, + "row": 5277, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "ML-17755", - "ECommerce.customerName": "Customer 33", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-133648", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": -2.1195, - "ECommerce.quantity": 3, - "ECommerce.rowId": 1995, - "ECommerce.sales": 11.304, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "city": "Los Angeles", + "order": "CA-2017-145772", + "orderData": 2020-06-03T00:00:00.000Z, + "row": 6125, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-138422", - "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", - "ECommerce.profit": 5.2026, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2329, - "ECommerce.sales": 14.352, - "ECommerce.subCategory": "Envelopes", + "SUM(ECommerce.count)": "1", + "city": "Marion", + "order": "CA-2017-145660", + "orderData": 2020-12-01T00:00:00.000Z, + "row": 6205, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "DB-13405", - "ECommerce.customerName": "Customer 15", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-03-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-140949", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "ECommerce.profit": 13.604, - "ECommerce.quantity": 8, - "ECommerce.rowId": 2455, - "ECommerce.sales": 71.6, - "ECommerce.subCategory": "Accessories", + "SUM(ECommerce.count)": "1", + "city": "Oakland", + "order": "CA-2017-102379", + "orderData": 2020-12-02T00:00:00.000Z, + "row": 6272, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BM-11650", - "ECommerce.customerName": "Customer 8", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-13T00:00:00.000", - "ECommerce.orderId": "CA-2017-149048", - "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "ECommerce.profit": 81.432, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2595, - "ECommerce.sales": 180.96, - "ECommerce.subCategory": "Envelopes", + "SUM(ECommerce.count)": "1", + "city": "Baltimore", + "order": "US-2017-133361", + "orderData": 2020-05-14T00:00:00.000Z, + "row": 6459, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Provo", - "ECommerce.customerId": "AS-10225", - "ECommerce.customerName": "Customer 3", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-112515", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 77.5764, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2655, - "ECommerce.sales": 1292.94, - "ECommerce.subCategory": "Bookcases", + "SUM(ECommerce.count)": "1", + "city": "Arlington", + "order": "US-2017-124779", + "orderData": 2020-09-08T00:00:00.000Z, + "row": 6651, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "DG-13300", - "ECommerce.customerName": "Customer 16", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-28T00:00:00.000", - "ECommerce.orderId": "CA-2017-123372", - "ECommerce.productName": "Google Nexus 5", - "ECommerce.profit": 494.9725, - "ECommerce.quantity": 11, - "ECommerce.rowId": 2661, - "ECommerce.sales": 1979.89, - "ECommerce.subCategory": "Phones", + "SUM(ECommerce.count)": "1", + "city": "Houston", + "order": "US-2017-141677", + "orderData": 2020-03-26T00:00:00.000Z, + "row": 7174, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-109183", + "orderData": 2020-12-04T00:00:00.000Z, + "row": 7293, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": "CA-2017-112172", + "orderData": 2020-06-10T00:00:00.000Z, + "row": 7310, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Philadelphia", + "order": "CA-2017-135069", + "orderData": 2020-04-10T00:00:00.000Z, + "row": 7425, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-151799", + "orderData": 2020-12-14T00:00:00.000Z, + "row": 7698, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Lakewood", + "order": "CA-2017-150091", + "orderData": 2020-10-12T00:00:00.000Z, + "row": 8425, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Dallas", + "order": "US-2017-119319", + "orderData": 2020-11-06T00:00:00.000Z, + "row": 8621, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Decatur", + "order": "CA-2017-163265", + "orderData": 2020-02-16T00:00:00.000Z, + "row": 8673, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-119284", + "orderData": 2020-06-15T00:00:00.000Z, + "row": 8697, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Morristown", + "order": "CA-2017-126928", + "orderData": 2020-09-17T00:00:00.000Z, + "row": 8878, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-105620", + "orderData": 2020-12-25T00:00:00.000Z, + "row": 8958, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": "CA-2017-102925", + "orderData": 2020-11-05T00:00:00.000Z, + "row": 9473, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": "CA-2017-116127", + "orderData": 2020-06-25T00:00:00.000Z, + "row": 9584, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": "CA-2017-160633", + "orderData": 2020-11-16T00:00:00.000Z, + "row": 9618, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Bowling", + "order": "CA-2017-160633", + "orderData": 2020-11-16T00:00:00.000Z, + "row": 9619, }, ] `; -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + order 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Simple Rollup 1`] = ` Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "MC-17605", - "ECommerce.customerName": "Customer 31", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-01-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-145142", - "ECommerce.productName": "Balt Solid Wood Rectangular Table", - "ECommerce.profit": 21.098, - "ECommerce.quantity": 2, - "ECommerce.rowId": 523, - "ECommerce.sales": 210.98, - "ECommerce.subCategory": "Tables", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-01-23T00:00:00.000Z, + "orderId": "CA-2017-145142", + "rowId": 523, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lorain", - "ECommerce.customerId": "GA-14725", - "ECommerce.customerName": "Customer 19", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-107503", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 8.5568, - "ECommerce.quantity": 4, - "ECommerce.rowId": 849, - "ECommerce.sales": 48.896, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-01-01T00:00:00.000Z, + "orderId": "CA-2017-107503", + "rowId": 849, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Olympia", - "ECommerce.customerId": "PF-19165", - "ECommerce.customerName": "Customer 36", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-118437", - "ECommerce.productName": "Project Tote Personal File", - "ECommerce.profit": 4.0687, - "ECommerce.quantity": 1, - "ECommerce.rowId": 1013, - "ECommerce.sales": 14.03, - "ECommerce.subCategory": "Storage", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-06-17T00:00:00.000Z, + "orderId": "CA-2017-118437", + "rowId": 1013, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-30T00:00:00.000", - "ECommerce.orderId": "CA-2017-139661", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 3.6632, - "ECommerce.quantity": 2, - "ECommerce.rowId": 1494, - "ECommerce.sales": 9.64, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-10-30T00:00:00.000Z, + "orderId": "CA-2017-139661", + "rowId": 1494, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "ML-17755", - "ECommerce.customerName": "Customer 33", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-133648", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": -2.1195, - "ECommerce.quantity": 3, - "ECommerce.rowId": 1995, - "ECommerce.sales": 11.304, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-06-25T00:00:00.000Z, + "orderId": "CA-2017-133648", + "rowId": 1995, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-138422", - "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", - "ECommerce.profit": 5.2026, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2329, - "ECommerce.sales": 14.352, - "ECommerce.subCategory": "Envelopes", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-09-23T00:00:00.000Z, + "orderId": "CA-2017-138422", + "rowId": 2329, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "DB-13405", - "ECommerce.customerName": "Customer 15", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-03-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-140949", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "ECommerce.profit": 13.604, - "ECommerce.quantity": 8, - "ECommerce.rowId": 2455, - "ECommerce.sales": 71.6, - "ECommerce.subCategory": "Accessories", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-03-17T00:00:00.000Z, + "orderId": "CA-2017-140949", + "rowId": 2455, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BM-11650", - "ECommerce.customerName": "Customer 8", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-13T00:00:00.000", - "ECommerce.orderId": "CA-2017-149048", - "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "ECommerce.profit": 81.432, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2595, - "ECommerce.sales": 180.96, - "ECommerce.subCategory": "Envelopes", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-05-13T00:00:00.000Z, + "orderId": "CA-2017-149048", + "rowId": 2595, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Provo", - "ECommerce.customerId": "AS-10225", - "ECommerce.customerName": "Customer 3", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-112515", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 77.5764, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2655, - "ECommerce.sales": 1292.94, - "ECommerce.subCategory": "Bookcases", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-09-17T00:00:00.000Z, + "orderId": "CA-2017-112515", + "rowId": 2655, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "DG-13300", - "ECommerce.customerName": "Customer 16", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-28T00:00:00.000", - "ECommerce.orderId": "CA-2017-123372", - "ECommerce.productName": "Google Nexus 5", - "ECommerce.profit": 494.9725, - "ECommerce.quantity": 11, - "ECommerce.rowId": 2661, - "ECommerce.sales": 1979.89, - "ECommerce.subCategory": "Phones", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-28T00:00:00.000Z, + "orderId": "CA-2017-123372", + "rowId": 2661, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Glendale", - "ECommerce.customerId": "EM-14140", - "ECommerce.customerName": "Customer 18", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-12T00:00:00.000", - "ECommerce.orderId": "CA-2017-134915", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 9.9652, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2952, - "ECommerce.sales": 113.888, - "ECommerce.subCategory": "Chairs", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-12T00:00:00.000Z, + "orderId": "CA-2017-134915", + "rowId": 2952, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 10.3904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3059, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-10-19T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3059, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", - "ECommerce.profit": -3.3506, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3060, - "ECommerce.sales": 24.368, - "ECommerce.subCategory": "Tables", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-10-19T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3060, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Louisville", - "ECommerce.customerId": "DW-13480", - "ECommerce.customerName": "Customer 17", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-27T00:00:00.000", - "ECommerce.orderId": "US-2017-132297", - "ECommerce.productName": "Google Nexus 6", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 3083, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-05-27T00:00:00.000Z, + "orderId": "US-2017-132297", + "rowId": 3083, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Auburn", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-11T00:00:00.000", - "ECommerce.orderId": "CA-2017-102554", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3448, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-06-11T00:00:00.000Z, + "orderId": "CA-2017-102554", + "rowId": 3448, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Omaha", - "ECommerce.customerId": "JO-15550", - "ECommerce.customerName": "Customer 24", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-29T00:00:00.000", - "ECommerce.orderId": "CA-2017-144568", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": 1.1775, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3717, - "ECommerce.sales": 23.55, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-05-29T00:00:00.000Z, + "orderId": "CA-2017-144568", + "rowId": 3717, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bakersfield", - "ECommerce.customerId": "AW-10840", - "ECommerce.customerName": "Customer 4", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-123001", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 2.726, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3934, - "ECommerce.sales": 9.4, - "ECommerce.subCategory": "Art", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-09-02T00:00:00.000Z, + "orderId": "CA-2017-123001", + "rowId": 3934, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "CC-12475", - "ECommerce.customerName": "Customer 12", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-21T00:00:00.000", - "ECommerce.orderId": "CA-2017-100811", - "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", - "ECommerce.profit": 3.9296, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4012, - "ECommerce.sales": 39.296, - "ECommerce.subCategory": "Storage", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-21T00:00:00.000Z, + "orderId": "CA-2017-100811", + "rowId": 4012, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lafayette", - "ECommerce.customerId": "CS-12355", - "ECommerce.customerName": "Customer 14", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-24T00:00:00.000", - "ECommerce.orderId": "CA-2017-124296", - "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", - "ECommerce.profit": 60.5488, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4031, - "ECommerce.sales": 232.88, - "ECommerce.subCategory": "Chairs", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-12-24T00:00:00.000Z, + "orderId": "CA-2017-124296", + "rowId": 4031, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "AH-10465", - "ECommerce.customerName": "Customer 1", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-115546", - "ECommerce.productName": "Google Nexus 7", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 4161, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-05-14T00:00:00.000Z, + "orderId": "CA-2017-115546", + "rowId": 4161, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "WB-21850", - "ECommerce.customerName": "Customer 41", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-11T00:00:00.000", - "ECommerce.orderId": "CA-2017-120327", - "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 21.5824, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4227, - "ECommerce.sales": 45.92, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-11T00:00:00.000Z, + "orderId": "CA-2017-120327", + "rowId": 4227, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "TB-21175", - "ECommerce.customerName": "Customer 39", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-143567", - "ECommerce.productName": "Logitech di_Novo Edge Keyboard", - "ECommerce.profit": 517.4793, - "ECommerce.quantity": 9, - "ECommerce.rowId": 4882, - "ECommerce.sales": 2249.91, - "ECommerce.subCategory": "Accessories", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-02T00:00:00.000Z, + "orderId": "CA-2017-143567", + "rowId": 4882, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "CA-12775", - "ECommerce.customerName": "Customer 11", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-145653", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 134.5302, - "ECommerce.quantity": 7, - "ECommerce.rowId": 5220, - "ECommerce.sales": 498.26, - "ECommerce.subCategory": "Chairs", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-09-01T00:00:00.000Z, + "orderId": "CA-2017-145653", + "rowId": 5220, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KL-16555", - "ECommerce.customerName": "Customer 27", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-147333", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", - "ECommerce.profit": 8.5025, - "ECommerce.quantity": 5, - "ECommerce.rowId": 5277, - "ECommerce.sales": 44.75, - "ECommerce.subCategory": "Accessories", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-12-14T00:00:00.000Z, + "orderId": "CA-2017-147333", + "rowId": 5277, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Los Angeles", - "ECommerce.customerId": "SS-20140", - "ECommerce.customerName": "Customer 38", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-03T00:00:00.000", - "ECommerce.orderId": "CA-2017-145772", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", - "ECommerce.profit": 8.5025, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6125, - "ECommerce.sales": 44.75, - "ECommerce.subCategory": "Accessories", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-06-03T00:00:00.000Z, + "orderId": "CA-2017-145772", + "rowId": 6125, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Marion", - "ECommerce.customerId": "MG-17650", - "ECommerce.customerName": "Customer 32", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-12-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-145660", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 1.7352, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6205, - "ECommerce.sales": 7.712, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-12-01T00:00:00.000Z, + "orderId": "CA-2017-145660", + "rowId": 6205, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Oakland", - "ECommerce.customerId": "BB-11545", - "ECommerce.customerName": "Customer 5", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-102379", - "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "ECommerce.profit": 44.975, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6272, - "ECommerce.sales": 179.9, - "ECommerce.subCategory": "Art", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-12-02T00:00:00.000Z, + "orderId": "CA-2017-102379", + "rowId": 6272, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Baltimore", - "ECommerce.customerId": "AJ-10780", - "ECommerce.customerName": "Customer 2", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "US-2017-133361", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6459, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-05-14T00:00:00.000Z, + "orderId": "US-2017-133361", + "rowId": 6459, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Arlington", - "ECommerce.customerId": "BF-11020", - "ECommerce.customerName": "Customer 6", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-08T00:00:00.000", - "ECommerce.orderId": "US-2017-124779", - "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 15.498, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6651, - "ECommerce.sales": 45.92, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-09-08T00:00:00.000Z, + "orderId": "US-2017-124779", + "rowId": 6651, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Houston", - "ECommerce.customerId": "HK-14890", - "ECommerce.customerName": "Customer 22", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-03-26T00:00:00.000", - "ECommerce.orderId": "US-2017-141677", - "ECommerce.productName": "Canon PC1080F Personal Copier", - "ECommerce.profit": 569.9905, - "ECommerce.quantity": 5, - "ECommerce.rowId": 7174, - "ECommerce.sales": 2399.96, - "ECommerce.subCategory": "Copiers", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-03-26T00:00:00.000Z, + "orderId": "US-2017-141677", + "rowId": 7174, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "LR-16915", - "ECommerce.customerName": "Customer 30", - "ECommerce.discount": 0.5, - "ECommerce.orderDate": "2020-12-04T00:00:00.000", - "ECommerce.orderId": "CA-2017-109183", - "ECommerce.productName": "Okidata C610n Printer", - "ECommerce.profit": -272.58, - "ECommerce.quantity": 2, - "ECommerce.rowId": 7293, - "ECommerce.sales": 649, - "ECommerce.subCategory": "Machines", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-12-04T00:00:00.000Z, + "orderId": "CA-2017-109183", + "rowId": 7293, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "New York City", - "ECommerce.customerId": "MM-18280", - "ECommerce.customerName": "Customer 34", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-112172", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": 0.7065, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7310, - "ECommerce.sales": 14.13, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-06-10T00:00:00.000Z, + "orderId": "CA-2017-112172", + "rowId": 7310, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "BS-11755", - "ECommerce.customerName": "Customer 10", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-04-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-135069", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 6.4176, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7425, - "ECommerce.sales": 36.672, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-04-10T00:00:00.000Z, + "orderId": "CA-2017-135069", + "rowId": 7425, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BF-11170", - "ECommerce.customerName": "Customer 7", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-151799", - "ECommerce.productName": "Canon PC1080F Personal Copier", - "ECommerce.profit": 467.9922, - "ECommerce.quantity": 2, - "ECommerce.rowId": 7698, - "ECommerce.sales": 1199.98, - "ECommerce.subCategory": "Copiers", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-12-14T00:00:00.000Z, + "orderId": "CA-2017-151799", + "rowId": 7698, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lakewood", - "ECommerce.customerId": "NP-18670", - "ECommerce.customerName": "Customer 35", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-12T00:00:00.000", - "ECommerce.orderId": "CA-2017-150091", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 129.294, - "ECommerce.quantity": 5, - "ECommerce.rowId": 8425, - "ECommerce.sales": 2154.9, - "ECommerce.subCategory": "Bookcases", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-10-12T00:00:00.000Z, + "orderId": "CA-2017-150091", + "rowId": 8425, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Dallas", - "ECommerce.customerId": "LC-17050", - "ECommerce.customerName": "Customer 29", - "ECommerce.discount": 0.6, - "ECommerce.orderDate": "2020-11-06T00:00:00.000", - "ECommerce.orderId": "US-2017-119319", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": -19.864, - "ECommerce.quantity": 5, - "ECommerce.rowId": 8621, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-06T00:00:00.000Z, + "orderId": "US-2017-119319", + "rowId": 8621, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Decatur", - "ECommerce.customerId": "JS-16030", - "ECommerce.customerName": "Customer 25", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-02-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-163265", - "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 6.1992, - "ECommerce.quantity": 2, - "ECommerce.rowId": 8673, - "ECommerce.sales": 18.368, - "ECommerce.subCategory": "Fasteners", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-02-16T00:00:00.000Z, + "orderId": "CA-2017-163265", + "rowId": 8673, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "TS-21205", - "ECommerce.customerName": "Customer 40", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-15T00:00:00.000", - "ECommerce.orderId": "CA-2017-119284", - "ECommerce.productName": "HTC One", - "ECommerce.profit": 26.9973, - "ECommerce.quantity": 3, - "ECommerce.rowId": 8697, - "ECommerce.sales": 239.976, - "ECommerce.subCategory": "Phones", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-06-15T00:00:00.000Z, + "orderId": "CA-2017-119284", + "rowId": 8697, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Morristown", - "ECommerce.customerId": "GZ-14470", - "ECommerce.customerName": "Customer 20", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-126928", - "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "ECommerce.profit": 225.6, - "ECommerce.quantity": 4, - "ECommerce.rowId": 8878, - "ECommerce.sales": 480, - "ECommerce.subCategory": "Machines", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-09-17T00:00:00.000Z, + "orderId": "CA-2017-126928", + "rowId": 8878, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "JH-15430", - "ECommerce.customerName": "Customer 23", - "ECommerce.discount": 0.5, - "ECommerce.orderDate": "2020-12-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-105620", - "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "ECommerce.profit": -7.2, - "ECommerce.quantity": 2, - "ECommerce.rowId": 8958, - "ECommerce.sales": 120, - "ECommerce.subCategory": "Machines", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-12-25T00:00:00.000Z, + "orderId": "CA-2017-105620", + "rowId": 8958, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "New York City", - "ECommerce.customerId": "CD-12280", - "ECommerce.customerName": "Customer 13", - "ECommerce.discount": 0.1, - "ECommerce.orderDate": "2020-11-05T00:00:00.000", - "ECommerce.orderId": "CA-2017-102925", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 24.2012, - "ECommerce.quantity": 2, - "ECommerce.rowId": 9473, - "ECommerce.sales": 128.124, - "ECommerce.subCategory": "Chairs", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-05T00:00:00.000Z, + "orderId": "CA-2017-102925", + "rowId": 9473, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "New York City", - "ECommerce.customerId": "SB-20185", - "ECommerce.customerName": "Customer 37", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-116127", - "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", - "ECommerce.profit": -5.0098, - "ECommerce.quantity": 1, - "ECommerce.rowId": 9584, - "ECommerce.sales": 400.784, - "ECommerce.subCategory": "Bookcases", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-06-25T00:00:00.000Z, + "orderId": "CA-2017-116127", + "rowId": 9584, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BS-11380", - "ECommerce.customerName": "Customer 9", - "ECommerce.discount": 0.4, - "ECommerce.orderDate": "2020-11-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-160633", - "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", - "ECommerce.profit": 74.9985, - "ECommerce.quantity": 3, - "ECommerce.rowId": 9618, - "ECommerce.sales": 899.982, - "ECommerce.subCategory": "Copiers", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-16T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9618, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bowling", - "ECommerce.customerId": "BS-11380", - "ECommerce.customerName": "Customer 9", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-160633", - "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "ECommerce.profit": 5.397, - "ECommerce.quantity": 3, - "ECommerce.rowId": 9619, - "ECommerce.sales": 86.352, - "ECommerce.subCategory": "Art", + "SUM(ECommerce.count)": "1", + "orderDate": 2020-11-16T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9619, }, ] `; -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + total 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: Timeshift measure from cube 1`] = ` Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "MC-17605", - "ECommerce.customerName": "Customer 31", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-01-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-145142", - "ECommerce.productName": "Balt Solid Wood Rectangular Table", - "ECommerce.profit": 21.098, - "ECommerce.quantity": 2, - "ECommerce.rowId": 523, - "ECommerce.sales": 210.98, - "ECommerce.subCategory": "Tables", + "orderDate": 2020-02-01T00:00:00.000Z, + "totalQuantity": 2, + "totalQuantityPriorMonth": 6, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lorain", - "ECommerce.customerId": "GA-14725", - "ECommerce.customerName": "Customer 19", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-107503", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 8.5568, - "ECommerce.quantity": 4, - "ECommerce.rowId": 849, - "ECommerce.sales": 48.896, - "ECommerce.subCategory": "Furnishings", + "orderDate": 2020-03-01T00:00:00.000Z, + "totalQuantity": 13, + "totalQuantityPriorMonth": 2, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Olympia", - "ECommerce.customerId": "PF-19165", - "ECommerce.customerName": "Customer 36", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-118437", - "ECommerce.productName": "Project Tote Personal File", - "ECommerce.profit": 4.0687, - "ECommerce.quantity": 1, - "ECommerce.rowId": 1013, - "ECommerce.sales": 14.03, - "ECommerce.subCategory": "Storage", + "orderDate": 2020-04-01T00:00:00.000Z, + "totalQuantity": 3, + "totalQuantityPriorMonth": 13, }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-30T00:00:00.000", - "ECommerce.orderId": "CA-2017-139661", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 3.6632, - "ECommerce.quantity": 2, - "ECommerce.rowId": 1494, - "ECommerce.sales": 9.64, - "ECommerce.subCategory": "Furnishings", + "orderDate": 2020-05-01T00:00:00.000Z, + "totalQuantity": 15, + "totalQuantityPriorMonth": 3, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "ML-17755", - "ECommerce.customerName": "Customer 33", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-133648", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": -2.1195, - "ECommerce.quantity": 3, - "ECommerce.rowId": 1995, - "ECommerce.sales": 11.304, - "ECommerce.subCategory": "Fasteners", + "orderDate": 2020-06-01T00:00:00.000Z, + "totalQuantity": 18, + "totalQuantityPriorMonth": 15, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-138422", - "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", - "ECommerce.profit": 5.2026, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2329, - "ECommerce.sales": 14.352, - "ECommerce.subCategory": "Envelopes", + "orderDate": 2020-10-01T00:00:00.000Z, + "totalQuantity": 11, + "totalQuantityPriorMonth": 27, }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "DB-13405", - "ECommerce.customerName": "Customer 15", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-03-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-140949", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "ECommerce.profit": 13.604, - "ECommerce.quantity": 8, - "ECommerce.rowId": 2455, - "ECommerce.sales": 71.6, - "ECommerce.subCategory": "Accessories", + "orderDate": 2020-11-01T00:00:00.000Z, + "totalQuantity": 43, + "totalQuantityPriorMonth": 11, }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BM-11650", - "ECommerce.customerName": "Customer 8", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-13T00:00:00.000", - "ECommerce.orderId": "CA-2017-149048", - "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "ECommerce.profit": 81.432, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2595, - "ECommerce.sales": 180.96, - "ECommerce.subCategory": "Envelopes", + "orderDate": 2020-12-01T00:00:00.000Z, + "totalQuantity": 22, + "totalQuantityPriorMonth": 43, }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` +Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Provo", - "ECommerce.customerId": "AS-10225", + "a0": 41, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: post-aggregate percentage of total 1`] = ` +Array [ + Object { + "SUM(BigECommerce.percentageOfTotalForStatus)": 100, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: powerbi min max push down: powerbi_min_max_push_down 1`] = ` +Array [ + Object { + "a0": 2020-12-25T00:00:00.000Z, + "a1": 2020-01-01T00:00:00.000Z, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: powerbi min max ungrouped flag: powerbi_min_max_ungrouped_flag 1`] = ` +Array [ + Object { + "a0": "39", + "a1": 3.76, + "a2": 2399.96, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: ungrouped pre-agg: ungrouped_pre_agg 1`] = ` +Array [ + Object { + "productName": "Canon PC1080F Personal Copier", + "totalSales": 2399.96, + }, + Object { + "productName": "Logitech di_Novo Edge Keyboard", + "totalSales": 2249.91, + }, + Object { + "productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "totalSales": 2154.9, + }, + Object { + "productName": "Google Nexus 5", + "totalSales": 1979.89, + }, + Object { + "productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "totalSales": 1292.94, + }, + Object { + "productName": "Canon PC1080F Personal Copier", + "totalSales": 1199.98, + }, + Object { + "productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "totalSales": 899.982, + }, + Object { + "productName": "Okidata C610n Printer", + "totalSales": 649, + }, + Object { + "productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "totalSales": 600, + }, + Object { + "productName": "Google Nexus 6", + "totalSales": 539.97, + }, + Object { + "productName": "Google Nexus 7", + "totalSales": 539.97, + }, + Object { + "productName": "Harbour Creations 67200 Series Stacking Chairs", + "totalSales": 498.26, + }, + Object { + "productName": "DMI Eclipse Executive Suite Bookcases", + "totalSales": 400.784, + }, + Object { + "productName": "HTC One", + "totalSales": 239.976, + }, + Object { + "productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "totalSales": 232.88, + }, + Object { + "productName": "Balt Solid Wood Rectangular Table", + "totalSales": 210.98, + }, + Object { + "productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "totalSales": 180.96, + }, + Object { + "productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "totalSales": 179.9, + }, + Object { + "productName": "Harbour Creations 67200 Series Stacking Chairs", + "totalSales": 128.124, + }, + Object { + "productName": "Harbour Creations 67200 Series Stacking Chairs", + "totalSales": 113.888, + }, + Object { + "productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "totalSales": 86.352, + }, + Object { + "productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "totalSales": 71.6, + }, + Object { + "productName": "Linden 10 Round Wall Clock, Black", + "totalSales": 48.896, + }, + Object { + "productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "totalSales": 45.92, + }, + Object { + "productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "totalSales": 45.92, + }, + Object { + "productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "totalSales": 44.75, + }, + Object { + "productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "totalSales": 44.75, + }, + Object { + "productName": "Recycled Eldon Regeneration Jumbo File", + "totalSales": 39.296, + }, + Object { + "productName": "Linden 10 Round Wall Clock, Black", + "totalSales": 36.672, + }, + Object { + "productName": "Linden 10 Round Wall Clock, Black", + "totalSales": 30.56, + }, + Object { + "productName": "Linden 10 Round Wall Clock, Black", + "totalSales": 30.56, + }, + Object { + "productName": "Anderson Hickey Conga Table Tops & Accessories", + "totalSales": 24.368, + }, + Object { + "productName": "Plymouth Boxed Rubber Bands by Plymouth", + "totalSales": 23.55, + }, + Object { + "productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "totalSales": 18.368, + }, + Object { + "productName": "Wausau Papers Astrobrights Colored Envelopes", + "totalSales": 14.352, + }, + Object { + "productName": "Plymouth Boxed Rubber Bands by Plymouth", + "totalSales": 14.13, + }, + Object { + "productName": "Project Tote Personal File", + "totalSales": 14.03, + }, + Object { + "productName": "Plymouth Boxed Rubber Bands by Plymouth", + "totalSales": 11.304, + }, + Object { + "productName": "Magna Visual Magnetic Picture Hangers", + "totalSales": 9.64, + }, + Object { + "productName": "OIC #2 Pencils, Medium Soft", + "totalSales": 9.4, + }, + Object { + "productName": "Magna Visual Magnetic Picture Hangers", + "totalSales": 7.712, + }, + Object { + "productName": "OIC #2 Pencils, Medium Soft", + "totalSales": 3.76, + }, + Object { + "productName": "OIC #2 Pencils, Medium Soft", + "totalSales": 3.76, + }, + Object { + "productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "totalSales": null, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver Tesseract: SQL API: Timeshift measure from cube 1`] = ` +Array [ + Object { + "orderDate": 2020-01-01T00:00:00.000Z, + "totalQuantity": 6, + "totalQuantityPriorMonth": null, + }, + Object { + "orderDate": 2020-02-01T00:00:00.000Z, + "totalQuantity": 2, + "totalQuantityPriorMonth": 6, + }, + Object { + "orderDate": 2020-03-01T00:00:00.000Z, + "totalQuantity": 13, + "totalQuantityPriorMonth": 2, + }, + Object { + "orderDate": 2020-04-01T00:00:00.000Z, + "totalQuantity": 3, + "totalQuantityPriorMonth": 13, + }, + Object { + "orderDate": 2020-05-01T00:00:00.000Z, + "totalQuantity": 15, + "totalQuantityPriorMonth": 3, + }, + Object { + "orderDate": 2020-06-01T00:00:00.000Z, + "totalQuantity": 18, + "totalQuantityPriorMonth": 15, + }, + Object { + "orderDate": 2020-07-01T00:00:00.000Z, + "totalQuantity": null, + "totalQuantityPriorMonth": 18, + }, + Object { + "orderDate": 2020-09-01T00:00:00.000Z, + "totalQuantity": 27, + "totalQuantityPriorMonth": null, + }, + Object { + "orderDate": 2020-10-01T00:00:00.000Z, + "totalQuantity": 11, + "totalQuantityPriorMonth": 27, + }, + Object { + "orderDate": 2020-11-01T00:00:00.000Z, + "totalQuantity": 43, + "totalQuantityPriorMonth": 11, + }, + Object { + "orderDate": 2020-12-01T00:00:00.000Z, + "totalQuantity": 22, + "totalQuantityPriorMonth": 43, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver Tesseract: querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo 1`] = ` +Array [ + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailMonthAgo": 1, + "RetailCalendar.retail_date": "2020-02-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-02-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailMonthAgo": 1, + "RetailCalendar.retail_date": "2020-03-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-03-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailMonthAgo": 2, + "RetailCalendar.retail_date": "2020-04-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-04-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 5, + "BigECommerce.totalCountRetailMonthAgo": 1, + "RetailCalendar.retail_date": "2020-05-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-05-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 7, + "BigECommerce.totalCountRetailMonthAgo": 5, + "RetailCalendar.retail_date": "2020-06-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-06-01T00:00:00.000", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailMonthAgo": 7, + "RetailCalendar.retail_date": "2020-07-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-07-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 6, + "BigECommerce.totalCountRetailMonthAgo": null, + "RetailCalendar.retail_date": "2020-09-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-09-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 4, + "BigECommerce.totalCountRetailMonthAgo": 6, + "RetailCalendar.retail_date": "2020-10-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-10-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 9, + "BigECommerce.totalCountRetailMonthAgo": 5, + "RetailCalendar.retail_date": "2020-11-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-11-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 7, + "BigECommerce.totalCountRetailMonthAgo": 8, + "RetailCalendar.retail_date": "2020-12-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-12-01T00:00:00.000", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailMonthAgo": 7, + "RetailCalendar.retail_date": "2021-01-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2021-01-01T00:00:00.000", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver Tesseract: querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo 1`] = ` +Array [ + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-02-16", + "RetailCalendar.retail_date.week": "2020-02-16", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-02-23", + "RetailCalendar.retail_date.week": "2020-02-23", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-03-15", + "RetailCalendar.retail_date.week": "2020-03-15", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-03-22", + "RetailCalendar.retail_date.week": "2020-03-22", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-03-29", + "RetailCalendar.retail_date.week": "2020-03-29", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-04-05", + "RetailCalendar.retail_date.week": "2020-04-05", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-04-12", + "RetailCalendar.retail_date.week": "2020-04-12", + }, + Object { + "BigECommerce.count": 3, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-05-10", + "RetailCalendar.retail_date.week": "2020-05-10", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 3, + "RetailCalendar.retail_date": "2020-05-17", + "RetailCalendar.retail_date.week": "2020-05-17", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-05-24", + "RetailCalendar.retail_date.week": "2020-05-24", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-05-31", + "RetailCalendar.retail_date.week": "2020-05-31", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-06-07", + "RetailCalendar.retail_date.week": "2020-06-07", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-06-14", + "RetailCalendar.retail_date.week": "2020-06-14", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-06-21", + "RetailCalendar.retail_date.week": "2020-06-21", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-06-28", + "RetailCalendar.retail_date.week": "2020-06-28", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-08-30", + "RetailCalendar.retail_date.week": "2020-08-30", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-09-06", + "RetailCalendar.retail_date.week": "2020-09-06", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-09-13", + "RetailCalendar.retail_date.week": "2020-09-13", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-09-20", + "RetailCalendar.retail_date.week": "2020-09-20", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-09-27", + "RetailCalendar.retail_date.week": "2020-09-27", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-10-11", + "RetailCalendar.retail_date.week": "2020-10-11", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-10-18", + "RetailCalendar.retail_date.week": "2020-10-18", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-10-25", + "RetailCalendar.retail_date.week": "2020-10-25", + }, + Object { + "BigECommerce.count": 3, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-11-01", + "RetailCalendar.retail_date.week": "2020-11-01", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 3, + "RetailCalendar.retail_date": "2020-11-08", + "RetailCalendar.retail_date.week": "2020-11-08", + }, + Object { + "BigECommerce.count": 3, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-11-15", + "RetailCalendar.retail_date.week": "2020-11-15", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 3, + "RetailCalendar.retail_date": "2020-11-22", + "RetailCalendar.retail_date.week": "2020-11-22", + }, + Object { + "BigECommerce.count": 3, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-11-29", + "RetailCalendar.retail_date.week": "2020-11-29", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 3, + "RetailCalendar.retail_date": "2020-12-06", + "RetailCalendar.retail_date.week": "2020-12-06", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-12-13", + "RetailCalendar.retail_date.week": "2020-12-13", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-12-20", + "RetailCalendar.retail_date.week": "2020-12-20", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-12-27", + "RetailCalendar.retail_date.week": "2020-12-27", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: contains + dimensions, first 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: contains + dimensions, second 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: contains + dimensions, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: endsWith filter + dimensions, first 1`] = ` +Array [ + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: endsWith filter + dimensions, second 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: endsWith filter + dimensions, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notEndsWith filter + dimensions, first 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notEndsWith filter + dimensions, second 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notEndsWith filter + dimensions, third 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notStartsWith + dimensions, first 1`] = ` +Array [ + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notStartsWith + dimensions, second 1`] = ` +Array [ + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: notStartsWith + dimensions, third 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: startsWith + dimensions, first 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: startsWith + dimensions, second 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: startsWith + dimensions, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: contains dimensions, first 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": 21.098, + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": 210.98, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": -3.3506, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": 24.368, + "ECommerce.subCategory": "Tables", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: contains dimensions, second 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": 21.098, + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": 210.98, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 8.5568, + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": 48.896, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 3.6632, + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": 9.64, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 10.3904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": -3.3506, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": 24.368, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 1.7352, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": 7.712, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 6.4176, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": 36.672, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": 0.6, + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": -19.864, + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: contains dimensions, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: endsWith + dimensions, first 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 1.7352, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": 7.712, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": 0.5, + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": -7.2, + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": 120, + "ECommerce.subCategory": "Machines", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: endsWith + dimensions, second 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": 21.098, + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": 210.98, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 3.6632, + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": 9.64, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": 5.2026, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": 14.352, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": 494.9725, + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": 1979.89, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 10.3904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": -3.3506, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": 24.368, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 2.726, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": 9.4, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": 3.9296, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": 39.296, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": 8.5025, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": 44.75, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": 0.7065, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": 14.13, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 129.294, + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": 2154.9, + "ECommerce.subCategory": "Bookcases", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: endsWith + dimensions, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: startsWith + dimensions, first 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 77.5764, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": 1292.94, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 2.726, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": 9.4, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: startsWith + dimensions, second 1`] = ` +Array [ + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": 81.432, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": 180.96, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 77.5764, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": 1292.94, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 2.726, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": 9.4, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": 44.975, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": 179.9, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 15.498, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": 45.92, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 6.4176, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": 36.672, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": 467.9922, + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": 1199.98, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": 0.4, + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": 74.9985, + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": 899.982, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": 5.397, + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": 86.352, + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering ECommerce: startsWith + dimensions, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: contains + dimensions + order, first 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: contains + dimensions + order, second 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: contains + dimensions + order, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: contains with special chars + dimensions 1`] = ` +Array [ + Object { + "Products.productName": "Logitech di_Novo Edge Keyboard", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: endsWith filter + dimensions + order, first 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech di_Novo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: endsWith filter + dimensions + order, second 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech di_Novo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: endsWith filter + dimensions + order, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: startsWith filter + dimensions + order, first 1`] = ` +Array [ + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: startsWith filter + dimensions + order, second 1`] = ` +Array [ + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver filtering Products: startsWith filter + dimensions + order, third 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver pre-aggregations Customers: running total without time dimension 1`] = ` +Array [ + Object { + "Customers.runningTotal": "41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo 1`] = ` +Array [ + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailMonthAgo": 1, + "RetailCalendar.retail_date": "2020-02-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-02-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailMonthAgo": 1, + "RetailCalendar.retail_date": "2020-03-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-03-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailMonthAgo": 2, + "RetailCalendar.retail_date": "2020-04-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-04-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 5, + "BigECommerce.totalCountRetailMonthAgo": 1, + "RetailCalendar.retail_date": "2020-05-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-05-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 7, + "BigECommerce.totalCountRetailMonthAgo": 5, + "RetailCalendar.retail_date": "2020-06-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-06-01T00:00:00.000", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailMonthAgo": 7, + "RetailCalendar.retail_date": "2020-07-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-07-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 6, + "BigECommerce.totalCountRetailMonthAgo": null, + "RetailCalendar.retail_date": "2020-09-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-09-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 4, + "BigECommerce.totalCountRetailMonthAgo": 6, + "RetailCalendar.retail_date": "2020-10-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-10-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 9, + "BigECommerce.totalCountRetailMonthAgo": 5, + "RetailCalendar.retail_date": "2020-11-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-11-01T00:00:00.000", + }, + Object { + "BigECommerce.count": 7, + "BigECommerce.totalCountRetailMonthAgo": 8, + "RetailCalendar.retail_date": "2020-12-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2020-12-01T00:00:00.000", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailMonthAgo": 7, + "RetailCalendar.retail_date": "2021-01-01T00:00:00.000", + "RetailCalendar.retail_date.month": "2021-01-01T00:00:00.000", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo 1`] = ` +Array [ + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-02-16", + "RetailCalendar.retail_date.week": "2020-02-16", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-02-23", + "RetailCalendar.retail_date.week": "2020-02-23", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-03-15", + "RetailCalendar.retail_date.week": "2020-03-15", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-03-22", + "RetailCalendar.retail_date.week": "2020-03-22", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-03-29", + "RetailCalendar.retail_date.week": "2020-03-29", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-04-05", + "RetailCalendar.retail_date.week": "2020-04-05", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-04-12", + "RetailCalendar.retail_date.week": "2020-04-12", + }, + Object { + "BigECommerce.count": 3, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-05-10", + "RetailCalendar.retail_date.week": "2020-05-10", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 3, + "RetailCalendar.retail_date": "2020-05-17", + "RetailCalendar.retail_date.week": "2020-05-17", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-05-24", + "RetailCalendar.retail_date.week": "2020-05-24", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-05-31", + "RetailCalendar.retail_date.week": "2020-05-31", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-06-07", + "RetailCalendar.retail_date.week": "2020-06-07", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-06-14", + "RetailCalendar.retail_date.week": "2020-06-14", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-06-21", + "RetailCalendar.retail_date.week": "2020-06-21", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-06-28", + "RetailCalendar.retail_date.week": "2020-06-28", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-08-30", + "RetailCalendar.retail_date.week": "2020-08-30", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-09-06", + "RetailCalendar.retail_date.week": "2020-09-06", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-09-13", + "RetailCalendar.retail_date.week": "2020-09-13", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-09-20", + "RetailCalendar.retail_date.week": "2020-09-20", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-09-27", + "RetailCalendar.retail_date.week": "2020-09-27", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-10-11", + "RetailCalendar.retail_date.week": "2020-10-11", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-10-18", + "RetailCalendar.retail_date.week": "2020-10-18", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-10-25", + "RetailCalendar.retail_date.week": "2020-10-25", + }, + Object { + "BigECommerce.count": 3, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-11-01", + "RetailCalendar.retail_date.week": "2020-11-01", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 3, + "RetailCalendar.retail_date": "2020-11-08", + "RetailCalendar.retail_date.week": "2020-11-08", + }, + Object { + "BigECommerce.count": 3, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-11-15", + "RetailCalendar.retail_date.week": "2020-11-15", + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.totalCountRetailWeekAgo": 3, + "RetailCalendar.retail_date": "2020-11-22", + "RetailCalendar.retail_date.week": "2020-11-22", + }, + Object { + "BigECommerce.count": 3, + "BigECommerce.totalCountRetailWeekAgo": 1, + "RetailCalendar.retail_date": "2020-11-29", + "RetailCalendar.retail_date.week": "2020-11-29", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 3, + "RetailCalendar.retail_date": "2020-12-06", + "RetailCalendar.retail_date.week": "2020-12-06", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": null, + "RetailCalendar.retail_date": "2020-12-13", + "RetailCalendar.retail_date.week": "2020-12-13", + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-12-20", + "RetailCalendar.retail_date.week": "2020-12-20", + }, + Object { + "BigECommerce.count": null, + "BigECommerce.totalCountRetailWeekAgo": 2, + "RetailCalendar.retail_date": "2020-12-27", + "RetailCalendar.retail_date.week": "2020-12-27", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce with Retail Calendar: totalCountRetailYearAgo 1`] = ` +Array [ + Object { + "BigECommerce.count": 42, + "BigECommerce.totalCountRetailYearAgo": 2, + "RetailCalendar.retail_date": "2020-02-02", + "RetailCalendar.retail_date.year": "2020-02-02", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: SeveralMultiStageMeasures 1`] = ` +Array [ + Object { + "BigECommerce.count": 2, + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": null, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": 2, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 2, + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": 1, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 1, + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": 2, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 5, + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": 1, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 7, + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": 5, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": null, + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": null, + "BigECommerce.totalCountRetailMonthAgo": 7, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 6, + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": null, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 4, + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": 6, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 9, + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": 4, + "BigECommerce.totalProfitYearAgo": null, + }, + Object { + "BigECommerce.count": 7, + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.percentageOfTotalForStatus": 100, + "BigECommerce.totalCountRetailMonthAgo": 9, + "BigECommerce.totalProfitYearAgo": null, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: filtering with possible casts 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.totalSales": 210.98, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.totalSales": 18.368, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.totalSales": 2471.56, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.totalSales": 36.672, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.totalSales": 1284.45, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.totalSales": 724.974, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.totalSales": 2451.472, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.totalSales": 2209.828, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.totalSales": 5573.922, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.totalSales": 2073.63, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: multi-stage group by time dimension 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-01-01T00:00:00.000", + "BigECommerce.totalProfit": 29.6548, + "BigECommerce.totalProfitForQuarter": 619.4485, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-01-01T00:00:00.000", + "BigECommerce.totalProfit": 6.1992, + "BigECommerce.totalProfitForQuarter": 619.4485, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-01-01T00:00:00.000", + "BigECommerce.totalProfit": 583.5945, + "BigECommerce.totalProfitForQuarter": 619.4485, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-04-01T00:00:00.000", + "BigECommerce.totalProfit": 6.4176, + "BigECommerce.totalProfitForQuarter": 394.3386, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-04-01T00:00:00.000", + "BigECommerce.totalProfit": 353.6849, + "BigECommerce.totalProfitForQuarter": 394.3386, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-04-01T00:00:00.000", + "BigECommerce.totalProfit": 34.2361, + "BigECommerce.totalProfitForQuarter": 394.3386, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-07-01T00:00:00.000", + "BigECommerce.totalProfit": 461.1332, + "BigECommerce.totalProfitForQuarter": 461.1332, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-10-01T00:00:00.000", + "BigECommerce.totalProfit": 139.997, + "BigECommerce.totalProfitForQuarter": 1576.6324, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-10-01T00:00:00.000", + "BigECommerce.totalProfit": 1132.6617, + "BigECommerce.totalProfitForQuarter": 1576.6324, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.quarter": "2020-10-01T00:00:00.000", + "BigECommerce.totalProfit": 303.9737, + "BigECommerce.totalProfitForQuarter": 1576.6324, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: null boolean 1`] = ` +Array [ + Object { + "BigECommerce.returning": null, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: null sum 1`] = ` +Array [ + Object { + "BigECommerce.totalSales": null, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: partitioned pre-agg 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.productName": "Balt Solid Wood Rectangular Table", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.productName": "Linden 10 Round Wall Clock, Black", + "BigECommerce.totalQuantity": "4", + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.productName": "Canon PC1080F Personal Copier", + "BigECommerce.totalQuantity": "5", + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "BigECommerce.totalQuantity": "8", + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.productName": "Linden 10 Round Wall Clock, Black", + "BigECommerce.totalQuantity": "3", + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.productName": "Google Nexus 6", + "BigECommerce.totalQuantity": "3", + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.productName": "Google Nexus 7", + "BigECommerce.totalQuantity": "3", + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.productName": "OIC #2 Pencils, Medium Soft", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "BigECommerce.totalQuantity": "5", + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "BigECommerce.totalQuantity": "1", + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.productName": "HTC One", + "BigECommerce.totalQuantity": "3", + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "BigECommerce.totalQuantity": "5", + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.productName": "OIC #2 Pencils, Medium Soft", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "BigECommerce.totalQuantity": "6", + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.productName": "Project Tote Personal File", + "BigECommerce.totalQuantity": "1", + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "BigECommerce.totalQuantity": "3", + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "BigECommerce.totalQuantity": "7", + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "BigECommerce.totalQuantity": "4", + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.productName": "OIC #2 Pencils, Medium Soft", + "BigECommerce.totalQuantity": "5", + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "BigECommerce.totalQuantity": "5", + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "BigECommerce.totalQuantity": "3", + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "BigECommerce.totalQuantity": "5", + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.productName": "Linden 10 Round Wall Clock, Black", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.productName": "Google Nexus 5", + "BigECommerce.totalQuantity": "11", + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "BigECommerce.totalQuantity": "4", + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "BigECommerce.totalQuantity": "3", + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.productName": "Linden 10 Round Wall Clock, Black", + "BigECommerce.totalQuantity": "5", + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.productName": "Logitech di_Novo Edge Keyboard", + "BigECommerce.totalQuantity": "9", + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "BigECommerce.totalQuantity": "3", + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "BigECommerce.totalQuantity": "4", + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "BigECommerce.totalQuantity": "4", + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.productName": "Canon PC1080F Personal Copier", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "BigECommerce.totalQuantity": "4", + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "BigECommerce.totalQuantity": "5", + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.productName": "Okidata C610n Printer", + "BigECommerce.totalQuantity": "2", + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "BigECommerce.totalQuantity": "5", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: partitioned pre-agg with multi time dimension 1`] = ` +Array [ + Object { + "BigECommerce.completedDate": "2020-01-02T00:00:00.000", + "BigECommerce.completedDate.day": "2020-01-02T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-01T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-01-24T00:00:00.000", + "BigECommerce.completedDate.day": "2020-01-24T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-01-23T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-23T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-02-17T00:00:00.000", + "BigECommerce.completedDate.day": "2020-02-17T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-02-16T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-16T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-03-18T00:00:00.000", + "BigECommerce.completedDate.day": "2020-03-18T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-03-17T00:00:00.000", + "BigECommerce.orderDate.day": "2020-03-17T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-03-27T00:00:00.000", + "BigECommerce.completedDate.day": "2020-03-27T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-03-26T00:00:00.000", + "BigECommerce.orderDate.day": "2020-03-26T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-04-11T00:00:00.000", + "BigECommerce.completedDate.day": "2020-04-11T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-04-10T00:00:00.000", + "BigECommerce.orderDate.day": "2020-04-10T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-05-14T00:00:00.000", + "BigECommerce.completedDate.day": "2020-05-14T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-05-13T00:00:00.000", + "BigECommerce.orderDate.day": "2020-05-13T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-05-15T00:00:00.000", + "BigECommerce.completedDate.day": "2020-05-15T00:00:00.000", + "BigECommerce.count": "2", + "BigECommerce.orderDate": "2020-05-14T00:00:00.000", + "BigECommerce.orderDate.day": "2020-05-14T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-05-28T00:00:00.000", + "BigECommerce.completedDate.day": "2020-05-28T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-05-27T00:00:00.000", + "BigECommerce.orderDate.day": "2020-05-27T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-05-30T00:00:00.000", + "BigECommerce.completedDate.day": "2020-05-30T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-05-29T00:00:00.000", + "BigECommerce.orderDate.day": "2020-05-29T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-06-04T00:00:00.000", + "BigECommerce.completedDate.day": "2020-06-04T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-06-03T00:00:00.000", + "BigECommerce.orderDate.day": "2020-06-03T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-06-11T00:00:00.000", + "BigECommerce.completedDate.day": "2020-06-11T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-06-10T00:00:00.000", + "BigECommerce.orderDate.day": "2020-06-10T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-06-12T00:00:00.000", + "BigECommerce.completedDate.day": "2020-06-12T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-06-11T00:00:00.000", + "BigECommerce.orderDate.day": "2020-06-11T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-06-16T00:00:00.000", + "BigECommerce.completedDate.day": "2020-06-16T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-06-15T00:00:00.000", + "BigECommerce.orderDate.day": "2020-06-15T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-06-18T00:00:00.000", + "BigECommerce.completedDate.day": "2020-06-18T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-06-17T00:00:00.000", + "BigECommerce.orderDate.day": "2020-06-17T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-06-26T00:00:00.000", + "BigECommerce.completedDate.day": "2020-06-26T00:00:00.000", + "BigECommerce.count": "2", + "BigECommerce.orderDate": "2020-06-25T00:00:00.000", + "BigECommerce.orderDate.day": "2020-06-25T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-09-02T00:00:00.000", + "BigECommerce.completedDate.day": "2020-09-02T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-09-01T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-09-03T00:00:00.000", + "BigECommerce.completedDate.day": "2020-09-03T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-09-02T00:00:00.000", + "BigECommerce.orderDate.day": "2020-09-02T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-09-09T00:00:00.000", + "BigECommerce.completedDate.day": "2020-09-09T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-09-08T00:00:00.000", + "BigECommerce.orderDate.day": "2020-09-08T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-09-18T00:00:00.000", + "BigECommerce.completedDate.day": "2020-09-18T00:00:00.000", + "BigECommerce.count": "2", + "BigECommerce.orderDate": "2020-09-17T00:00:00.000", + "BigECommerce.orderDate.day": "2020-09-17T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-09-24T00:00:00.000", + "BigECommerce.completedDate.day": "2020-09-24T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-09-23T00:00:00.000", + "BigECommerce.orderDate.day": "2020-09-23T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-10-13T00:00:00.000", + "BigECommerce.completedDate.day": "2020-10-13T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-10-12T00:00:00.000", + "BigECommerce.orderDate.day": "2020-10-12T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-10-20T00:00:00.000", + "BigECommerce.completedDate.day": "2020-10-20T00:00:00.000", + "BigECommerce.count": "2", + "BigECommerce.orderDate": "2020-10-19T00:00:00.000", + "BigECommerce.orderDate.day": "2020-10-19T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-01T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-01T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-10-30T00:00:00.000", + "BigECommerce.orderDate.day": "2020-10-30T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-03T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-03T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-11-02T00:00:00.000", + "BigECommerce.orderDate.day": "2020-11-02T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-06T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-06T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-11-05T00:00:00.000", + "BigECommerce.orderDate.day": "2020-11-05T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-07T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-07T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-11-06T00:00:00.000", + "BigECommerce.orderDate.day": "2020-11-06T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-12T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-12T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-11-11T00:00:00.000", + "BigECommerce.orderDate.day": "2020-11-11T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-13T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-13T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-11-12T00:00:00.000", + "BigECommerce.orderDate.day": "2020-11-12T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-17T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-17T00:00:00.000", + "BigECommerce.count": "2", + "BigECommerce.orderDate": "2020-11-16T00:00:00.000", + "BigECommerce.orderDate.day": "2020-11-16T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-22T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-22T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-11-21T00:00:00.000", + "BigECommerce.orderDate.day": "2020-11-21T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-11-29T00:00:00.000", + "BigECommerce.completedDate.day": "2020-11-29T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-11-28T00:00:00.000", + "BigECommerce.orderDate.day": "2020-11-28T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-12-02T00:00:00.000", + "BigECommerce.completedDate.day": "2020-12-02T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-12-01T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-12-03T00:00:00.000", + "BigECommerce.completedDate.day": "2020-12-03T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-12-02T00:00:00.000", + "BigECommerce.orderDate.day": "2020-12-02T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-12-05T00:00:00.000", + "BigECommerce.completedDate.day": "2020-12-05T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-12-04T00:00:00.000", + "BigECommerce.orderDate.day": "2020-12-04T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-12-15T00:00:00.000", + "BigECommerce.completedDate.day": "2020-12-15T00:00:00.000", + "BigECommerce.count": "2", + "BigECommerce.orderDate": "2020-12-14T00:00:00.000", + "BigECommerce.orderDate.day": "2020-12-14T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-12-25T00:00:00.000", + "BigECommerce.completedDate.day": "2020-12-25T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-12-24T00:00:00.000", + "BigECommerce.orderDate.day": "2020-12-24T00:00:00.000", + }, + Object { + "BigECommerce.completedDate": "2020-12-26T00:00:00.000", + "BigECommerce.completedDate.day": "2020-12-26T00:00:00.000", + "BigECommerce.count": "1", + "BigECommerce.orderDate": "2020-12-25T00:00:00.000", + "BigECommerce.orderDate.day": "2020-12-25T00:00:00.000", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month + week + day + no gran) 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-02T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-02T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-03T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-03T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-04T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-04T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-05T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-05T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-06T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-06T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-07T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-07T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-08T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-08T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-09T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-09T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-10T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-10T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-11T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-11T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-12T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-12T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-13T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-13T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-14T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-14T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-15T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-15T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-16T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-16T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-17T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-17T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-18T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-18T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-19T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-19T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-20T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-20T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-21T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-21T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-22T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-22T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-23T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-23T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-24T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-24T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-25T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-25T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-26T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-26T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-27T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-28T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-28T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-29T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-29T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-30T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-30T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-31T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-31T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-02T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-02T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-03T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-03T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-04T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-04T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-05T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-05T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-06T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-06T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-07T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-07T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-08T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-08T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-09T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-09T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-10T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-10T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-11T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-11T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-12T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-12T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-13T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-13T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-14T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-14T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-15T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-15T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-16T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-16T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-17T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-17T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-18T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-18T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-19T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-19T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-20T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-20T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-21T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-21T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-22T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-22T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-23T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-23T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-24T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-24T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-25T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-25T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-26T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-26T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-27T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-28T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-28T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-29T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-29T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month + week + day) 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-02T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-02T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-03T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-03T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-04T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-04T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-05T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-05T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-06T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-06T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-07T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-07T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-08T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-08T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-09T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-09T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-10T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-10T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-11T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-11T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-12T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-12T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-06T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-13T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-13T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-14T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-14T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-15T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-15T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-16T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-16T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-17T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-17T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-18T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-18T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-19T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-19T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-13T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-20T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-20T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-21T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-21T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-22T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-22T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 1, + }, + Object { + "BigECommerce.orderDate": "2020-01-23T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-23T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-24T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-24T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-25T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-25T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-26T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-26T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-20T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-27T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-28T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-28T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-29T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-29T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-30T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-30T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-31T00:00:00.000", + "BigECommerce.orderDate.day": "2020-01-31T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-02T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-02T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-03T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-03T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-04T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-04T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-05T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-05T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-06T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-06T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-07T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-07T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-08T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-08T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-09T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-09T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-03T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-10T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-10T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-11T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-11T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-12T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-12T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-13T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-13T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-14T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-14T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-15T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-15T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-16T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-16T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-10T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-17T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-17T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-18T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-18T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-19T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-19T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-20T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-20T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-21T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-21T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-22T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-22T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-23T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-23T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-17T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-24T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-24T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-25T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-25T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-26T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-26T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-27T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-28T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-28T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-29T00:00:00.000", + "BigECommerce.orderDate.day": "2020-02-29T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.day": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month + week + no gran) 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2019-12-30T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-24T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 5, + }, + Object { + "BigECommerce.orderDate": "2020-03-30T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-03-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 6, + }, + Object { + "BigECommerce.orderDate": "2020-04-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-04-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 11, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-06-29T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-06-29T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-07-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-07-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-08-31T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-08-31T00:00:00.000", + "BigECommerce.rollingCountYTD": 24, + }, + Object { + "BigECommerce.orderDate": "2020-09-28T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-09-28T00:00:00.000", + "BigECommerce.rollingCountYTD": 28, + }, + Object { + "BigECommerce.orderDate": "2020-10-26T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-10-26T00:00:00.000", + "BigECommerce.rollingCountYTD": 37, + }, + Object { + "BigECommerce.orderDate": "2020-11-30T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-11-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 44, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month + week) 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2019-12-30T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.week": "2019-12-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-01-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-01-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-02-24T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-02-24T00:00:00.000", + "BigECommerce.rollingCountYTD": 5, + }, + Object { + "BigECommerce.orderDate": "2020-03-30T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-03-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 6, + }, + Object { + "BigECommerce.orderDate": "2020-04-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-04-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 11, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-06-29T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-06-29T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-07-27T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-07-27T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-08-31T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-08-31T00:00:00.000", + "BigECommerce.rollingCountYTD": 24, + }, + Object { + "BigECommerce.orderDate": "2020-09-28T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-09-28T00:00:00.000", + "BigECommerce.rollingCountYTD": 28, + }, + Object { + "BigECommerce.orderDate": "2020-10-26T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-10-26T00:00:00.000", + "BigECommerce.rollingCountYTD": 37, + }, + Object { + "BigECommerce.orderDate": "2020-11-30T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.week": "2020-11-30T00:00:00.000", + "BigECommerce.rollingCountYTD": 44, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD (month) 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 5, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 6, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 11, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 24, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 28, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 37, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 44, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD without date range 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 3, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 5, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 6, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 11, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 18, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 24, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 28, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 37, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountYTD": 44, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window YTD without granularity 1`] = ` +Array [ + Object { + "BigECommerce.rollingCountYTD": 3, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window by 2 day 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": 1, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window by 2 day without date range 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": 1, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window by 2 month 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 6, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 12, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 7, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": null, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 6, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 10, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 13, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 16, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window by 2 month without date range 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 6, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 12, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 7, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": null, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 6, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 10, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 13, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountBy2Month": 16, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: rolling window by 2 week 1`] = ` +Array [ + Object { + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 1, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 1, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 1, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": null, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 2, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 3, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": null, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": null, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 3, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 3, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 2, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountBy2Week": 2, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: time series in rolling window 1`] = ` +Array [ + Object { + "BigECommerce.customersCountPrev1Month": null, + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 2, + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 1, + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 2, + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 1, + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 5, + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 7, + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": null, + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": null, + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 6, + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 4, + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + }, + Object { + "BigECommerce.customersCountPrev1Month": 9, + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + limit 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + order + limit + total + offset 1`] = ` +Array [ + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + order + limit + total 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + order + total + offset 1`] = ` +Array [ + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + order 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + total 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions 1`] = ` +Array [ + Object { + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", + }, + Object { + "Customers.customerId": "AJ-10780", + "Customers.customerName": "Customer 2", + }, + Object { + "Customers.customerId": "AS-10225", + "Customers.customerName": "Customer 3", + }, + Object { + "Customers.customerId": "AW-10840", + "Customers.customerName": "Customer 4", + }, + Object { + "Customers.customerId": "BB-11545", + "Customers.customerName": "Customer 5", + }, + Object { + "Customers.customerId": "BF-11020", + "Customers.customerName": "Customer 6", + }, + Object { + "Customers.customerId": "BF-11170", + "Customers.customerName": "Customer 7", + }, + Object { + "Customers.customerId": "BM-11650", + "Customers.customerName": "Customer 8", + }, + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, + Object { + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", + }, + Object { + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", + }, + Object { + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", + }, + Object { + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", + }, + Object { + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", + }, + Object { + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", + }, + Object { + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", + }, + Object { + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", + }, + Object { + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", + }, + Object { + "Customers.customerId": "GA-14725", + "Customers.customerName": "Customer 19", + }, + Object { + "Customers.customerId": "GZ-14470", + "Customers.customerName": "Customer 20", + }, + Object { + "Customers.customerId": "HH-15010", + "Customers.customerName": "Customer 21", + }, + Object { + "Customers.customerId": "HK-14890", + "Customers.customerName": "Customer 22", + }, + Object { + "Customers.customerId": "JH-15430", + "Customers.customerName": "Customer 23", + }, + Object { + "Customers.customerId": "JO-15550", + "Customers.customerName": "Customer 24", + }, + Object { + "Customers.customerId": "JS-16030", + "Customers.customerName": "Customer 25", + }, + Object { + "Customers.customerId": "JW-15220", + "Customers.customerName": "Customer 26", + }, + Object { + "Customers.customerId": "KL-16555", + "Customers.customerName": "Customer 27", + }, + Object { + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", + }, + Object { + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", + }, + Object { + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", + }, + Object { + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", + }, + Object { + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", + }, + Object { + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", + }, + Object { + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", + }, + Object { + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", + }, + Object { + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", + }, + Object { + "Customers.customerId": "SB-20185", + "Customers.customerName": "Customer 37", + }, + Object { + "Customers.customerId": "SS-20140", + "Customers.customerName": "Customer 38", + }, + Object { + "Customers.customerId": "TB-21175", + "Customers.customerName": "Customer 39", + }, + Object { + "Customers.customerId": "TS-21205", + "Customers.customerName": "Customer 40", + }, + Object { + "Customers.customerId": "WB-21850", + "Customers.customerName": "Customer 41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: count by cities + order 1`] = ` +Array [ + Object { + "ECommerce.city": "Columbus", + "ECommerce.count": 12, + }, + Object { + "ECommerce.city": "New York City", + "ECommerce.count": 5, + }, + Object { + "ECommerce.city": "Detroit", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "Philadelphia", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "San Francisco", + "ECommerce.count": 2, + }, + Object { + "ECommerce.city": "Arlington", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Auburn", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Bakersfield", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Baltimore", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Bowling", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Dallas", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Decatur", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Glendale", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Houston", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lafayette", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lakewood", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Lorain", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Los Angeles", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Louisville", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Marion", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Morristown", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Oakland", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Olympia", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Omaha", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Provo", + "ECommerce.count": 1, + }, + Object { + "ECommerce.city": "Vancouver", + "ECommerce.count": 1, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + limit 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": 21.098, + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": 210.98, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 8.5568, + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": 48.896, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": 4.0687, + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": 14.03, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 3.6632, + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": 9.64, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": -2.1195, + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": 11.304, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": 5.2026, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": 14.352, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": 13.604, + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": 71.6, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": 81.432, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": 180.96, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 77.5764, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": 1292.94, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": 494.9725, + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": 1979.89, + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + order + limit + total + offset 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 9.9652, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": 113.888, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 10.3904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": -3.3506, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": 24.368, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": 1.1775, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": 23.55, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 2.726, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": 9.4, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": 3.9296, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": 39.296, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": 60.5488, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": 232.88, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + order + limit + total 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": 21.098, + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": 210.98, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 8.5568, + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": 48.896, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": 4.0687, + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": 14.03, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 3.6632, + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": 9.64, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": -2.1195, + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": 11.304, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": 5.2026, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": 14.352, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": 13.604, + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": 71.6, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": 81.432, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": 180.96, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 77.5764, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": 1292.94, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": 494.9725, + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": 1979.89, + "ECommerce.subCategory": "Phones", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + order 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": 21.098, + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": 210.98, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 8.5568, + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": 48.896, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": 4.0687, + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": 14.03, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 3.6632, + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": 9.64, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": -2.1195, + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": 11.304, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": 5.2026, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": 14.352, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": 13.604, + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": 71.6, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": 81.432, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": 180.96, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 77.5764, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": 1292.94, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": 494.9725, + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": 1979.89, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 9.9652, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": 113.888, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 10.3904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": -3.3506, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": 24.368, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": 1.1775, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": 23.55, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 2.726, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": 9.4, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": 3.9296, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": 39.296, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": 60.5488, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": 232.88, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 21.5824, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": 45.92, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.profit": 517.4793, + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": 2249.91, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 134.5302, + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": 498.26, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": 8.5025, + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": 44.75, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": 8.5025, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": 44.75, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 1.7352, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": 7.712, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": 44.975, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": 179.9, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 15.498, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": 45.92, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": 569.9905, + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": 2399.96, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": 0.5, + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": -272.58, + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": 649, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": 0.7065, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": 14.13, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 6.4176, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": 36.672, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": 467.9922, + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": 1199.98, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 129.294, + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": 2154.9, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": 0.6, + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": -19.864, + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 6.1992, + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": 18.368, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": 26.9973, + "ECommerce.quantity": 3, + "ECommerce.rowId": 8697, + "ECommerce.sales": 239.976, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": 225.6, + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": 480, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": 0.5, + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": -7.2, + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": 120, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": 0.1, + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 24.2012, + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": 128.124, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": -5.0098, + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": 400.784, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": 0.4, + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": 74.9985, + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": 899.982, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": 5.397, + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": 86.352, + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + total 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": 21.098, + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": 210.98, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 8.5568, + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": 48.896, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": 4.0687, + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": 14.03, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 3.6632, + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": 9.64, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": -2.1195, + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": 11.304, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": 5.2026, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": 14.352, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": 13.604, + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": 71.6, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": 81.432, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": 180.96, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 77.5764, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": 1292.94, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": 494.9725, + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": 1979.89, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 9.9652, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": 113.888, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 10.3904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": -3.3506, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": 24.368, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": 1.1775, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": 23.55, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 2.726, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": 9.4, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": 3.9296, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": 39.296, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": 60.5488, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": 232.88, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 21.5824, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": 45.92, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.profit": 517.4793, + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": 2249.91, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 134.5302, + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": 498.26, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": 8.5025, + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": 44.75, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": 8.5025, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": 44.75, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 1.7352, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": 7.712, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": 44.975, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": 179.9, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 15.498, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": 45.92, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": 569.9905, + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": 2399.96, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": 0.5, + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": -272.58, + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": 649, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": 0.7065, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": 14.13, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 6.4176, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": 36.672, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": 467.9922, + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": 1199.98, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 129.294, + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": 2154.9, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": 0.6, + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": -19.864, + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 6.1992, + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": 18.368, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": 26.9973, + "ECommerce.quantity": 3, + "ECommerce.rowId": 8697, + "ECommerce.sales": 239.976, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": 225.6, + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": 480, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": 0.5, + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": -7.2, + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": 120, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": 0.1, + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 24.2012, + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": 128.124, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": -5.0098, + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": 400.784, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": 0.4, + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": 74.9985, + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": 899.982, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": 5.397, + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": 86.352, + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions 1`] = ` +Array [ + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-01-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-145142", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.profit": 21.098, + "ECommerce.quantity": 2, + "ECommerce.rowId": 523, + "ECommerce.sales": 210.98, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-107503", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 8.5568, + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": 48.896, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-118437", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.profit": 4.0687, + "ECommerce.quantity": 1, + "ECommerce.rowId": 1013, + "ECommerce.sales": 14.03, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-30T00:00:00.000", + "ECommerce.orderId": "CA-2017-139661", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 3.6632, + "ECommerce.quantity": 2, + "ECommerce.rowId": 1494, + "ECommerce.sales": 9.64, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": -2.1195, + "ECommerce.quantity": 3, + "ECommerce.rowId": 1995, + "ECommerce.sales": 11.304, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-23T00:00:00.000", + "ECommerce.orderId": "CA-2017-138422", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.profit": 5.2026, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2329, + "ECommerce.sales": 14.352, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-03-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-140949", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.profit": 13.604, + "ECommerce.quantity": 8, + "ECommerce.rowId": 2455, + "ECommerce.sales": 71.6, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-13T00:00:00.000", + "ECommerce.orderId": "CA-2017-149048", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.profit": 81.432, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2595, + "ECommerce.sales": 180.96, + "ECommerce.subCategory": "Envelopes", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Provo", + "ECommerce.customerId": "AS-10225", "ECommerce.customerName": "Customer 3", "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-112515", + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-112515", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.profit": 77.5764, + "ECommerce.quantity": 3, + "ECommerce.rowId": 2655, + "ECommerce.sales": 1292.94, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-28T00:00:00.000", + "ECommerce.orderId": "CA-2017-123372", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.profit": 494.9725, + "ECommerce.quantity": 11, + "ECommerce.rowId": 2661, + "ECommerce.sales": 1979.89, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Glendale", + "ECommerce.customerId": "EM-14140", + "ECommerce.customerName": "Customer 18", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-134915", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 9.9652, + "ECommerce.quantity": 2, + "ECommerce.rowId": 2952, + "ECommerce.sales": 113.888, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 10.3904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3059, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "San Francisco", + "ECommerce.customerId": "HH-15010", + "ECommerce.customerName": "Customer 21", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-10-19T00:00:00.000", + "ECommerce.orderId": "CA-2017-131492", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.profit": -3.3506, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3060, + "ECommerce.sales": 24.368, + "ECommerce.subCategory": "Tables", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Louisville", + "ECommerce.customerId": "DW-13480", + "ECommerce.customerName": "Customer 17", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-27T00:00:00.000", + "ECommerce.orderId": "US-2017-132297", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 3083, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Auburn", + "ECommerce.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-102554", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 3448, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Omaha", + "ECommerce.customerId": "JO-15550", + "ECommerce.customerName": "Customer 24", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-29T00:00:00.000", + "ECommerce.orderId": "CA-2017-144568", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": 1.1775, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3717, + "ECommerce.sales": 23.55, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bakersfield", + "ECommerce.customerId": "AW-10840", + "ECommerce.customerName": "Customer 4", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-123001", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 2.726, + "ECommerce.quantity": 5, + "ECommerce.rowId": 3934, + "ECommerce.sales": 9.4, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "CC-12475", + "ECommerce.customerName": "Customer 12", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-21T00:00:00.000", + "ECommerce.orderId": "CA-2017-100811", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.profit": 3.9296, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4012, + "ECommerce.sales": 39.296, + "ECommerce.subCategory": "Storage", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lafayette", + "ECommerce.customerId": "CS-12355", + "ECommerce.customerName": "Customer 14", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-24T00:00:00.000", + "ECommerce.orderId": "CA-2017-124296", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.profit": 60.5488, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4031, + "ECommerce.sales": 232.88, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "New York City", + "ECommerce.customerId": "AH-10465", + "ECommerce.customerName": "Customer 1", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-115546", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.profit": 134.9925, + "ECommerce.quantity": 3, + "ECommerce.rowId": 4161, + "ECommerce.sales": 539.97, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "WB-21850", + "ECommerce.customerName": "Customer 41", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-11T00:00:00.000", + "ECommerce.orderId": "CA-2017-120327", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 21.5824, + "ECommerce.quantity": 4, + "ECommerce.rowId": 4227, + "ECommerce.sales": 45.92, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TB-21175", + "ECommerce.customerName": "Customer 39", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-11-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-143567", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.profit": 517.4793, + "ECommerce.quantity": 9, + "ECommerce.rowId": 4882, + "ECommerce.sales": 2249.91, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "CA-12775", + "ECommerce.customerName": "Customer 11", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145653", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 134.5302, + "ECommerce.quantity": 7, + "ECommerce.rowId": 5220, + "ECommerce.sales": 498.26, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "KL-16555", + "ECommerce.customerName": "Customer 27", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-147333", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.profit": 8.5025, + "ECommerce.quantity": 5, + "ECommerce.rowId": 5277, + "ECommerce.sales": 44.75, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Los Angeles", + "ECommerce.customerId": "SS-20140", + "ECommerce.customerName": "Customer 38", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-03T00:00:00.000", + "ECommerce.orderId": "CA-2017-145772", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.profit": 8.5025, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6125, + "ECommerce.sales": 44.75, + "ECommerce.subCategory": "Accessories", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Marion", + "ECommerce.customerId": "MG-17650", + "ECommerce.customerName": "Customer 32", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderId": "CA-2017-145660", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.profit": 1.7352, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6205, + "ECommerce.sales": 7.712, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Oakland", + "ECommerce.customerId": "BB-11545", + "ECommerce.customerName": "Customer 5", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-02T00:00:00.000", + "ECommerce.orderId": "CA-2017-102379", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": 44.975, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6272, + "ECommerce.sales": 179.9, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-05-14T00:00:00.000", + "ECommerce.orderId": "US-2017-133361", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.profit": 1.0904, + "ECommerce.quantity": 2, + "ECommerce.rowId": 6459, + "ECommerce.sales": 3.76, + "ECommerce.subCategory": "Art", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Arlington", + "ECommerce.customerId": "BF-11020", + "ECommerce.customerName": "Customer 6", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-09-08T00:00:00.000", + "ECommerce.orderId": "US-2017-124779", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 15.498, + "ECommerce.quantity": 5, + "ECommerce.rowId": 6651, + "ECommerce.sales": 45.92, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-03-26T00:00:00.000", + "ECommerce.orderId": "US-2017-141677", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": 569.9905, + "ECommerce.quantity": 5, + "ECommerce.rowId": 7174, + "ECommerce.sales": 2399.96, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "LR-16915", + "ECommerce.customerName": "Customer 30", + "ECommerce.discount": 0.5, + "ECommerce.orderDate": "2020-12-04T00:00:00.000", + "ECommerce.orderId": "CA-2017-109183", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.profit": -272.58, + "ECommerce.quantity": 2, + "ECommerce.rowId": 7293, + "ECommerce.sales": 649, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "New York City", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-06-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-112172", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.profit": 0.7065, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7310, + "ECommerce.sales": 14.13, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": 6.4176, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": 36.672, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-12-14T00:00:00.000", + "ECommerce.orderId": "CA-2017-151799", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.profit": 467.9922, + "ECommerce.quantity": 2, + "ECommerce.rowId": 7698, + "ECommerce.sales": 1199.98, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-10-12T00:00:00.000", + "ECommerce.orderId": "CA-2017-150091", "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 77.5764, + "ECommerce.profit": 129.294, + "ECommerce.quantity": 5, + "ECommerce.rowId": 8425, + "ECommerce.sales": 2154.9, + "ECommerce.subCategory": "Bookcases", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "Dallas", + "ECommerce.customerId": "LC-17050", + "ECommerce.customerName": "Customer 29", + "ECommerce.discount": 0.6, + "ECommerce.orderDate": "2020-11-06T00:00:00.000", + "ECommerce.orderId": "US-2017-119319", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.profit": -19.864, + "ECommerce.quantity": 5, + "ECommerce.rowId": 8621, + "ECommerce.sales": 30.56, + "ECommerce.subCategory": "Furnishings", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-02-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-163265", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.profit": 6.1992, + "ECommerce.quantity": 2, + "ECommerce.rowId": 8673, + "ECommerce.sales": 18.368, + "ECommerce.subCategory": "Fasteners", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-15T00:00:00.000", + "ECommerce.orderId": "CA-2017-119284", + "ECommerce.productName": "HTC One", + "ECommerce.profit": 26.9973, "ECommerce.quantity": 3, - "ECommerce.rowId": 2655, - "ECommerce.sales": 1292.94, + "ECommerce.rowId": 8697, + "ECommerce.sales": 239.976, + "ECommerce.subCategory": "Phones", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", + "ECommerce.discount": 0, + "ECommerce.orderDate": "2020-09-17T00:00:00.000", + "ECommerce.orderId": "CA-2017-126928", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": 225.6, + "ECommerce.quantity": 4, + "ECommerce.rowId": 8878, + "ECommerce.sales": 480, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "JH-15430", + "ECommerce.customerName": "Customer 23", + "ECommerce.discount": 0.5, + "ECommerce.orderDate": "2020-12-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-105620", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.profit": -7.2, + "ECommerce.quantity": 2, + "ECommerce.rowId": 8958, + "ECommerce.sales": 120, + "ECommerce.subCategory": "Machines", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "CD-12280", + "ECommerce.customerName": "Customer 13", + "ECommerce.discount": 0.1, + "ECommerce.orderDate": "2020-11-05T00:00:00.000", + "ECommerce.orderId": "CA-2017-102925", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.profit": 24.2012, + "ECommerce.quantity": 2, + "ECommerce.rowId": 9473, + "ECommerce.sales": 128.124, + "ECommerce.subCategory": "Chairs", + }, + Object { + "ECommerce.category": "Furniture", + "ECommerce.city": "New York City", + "ECommerce.customerId": "SB-20185", + "ECommerce.customerName": "Customer 37", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-116127", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.profit": -5.0098, + "ECommerce.quantity": 1, + "ECommerce.rowId": 9584, + "ECommerce.sales": 400.784, "ECommerce.subCategory": "Bookcases", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "DG-13300", - "ECommerce.customerName": "Customer 16", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-28T00:00:00.000", - "ECommerce.orderId": "CA-2017-123372", - "ECommerce.productName": "Google Nexus 5", - "ECommerce.profit": 494.9725, - "ECommerce.quantity": 11, - "ECommerce.rowId": 2661, - "ECommerce.sales": 1979.89, - "ECommerce.subCategory": "Phones", + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": 0.4, + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.profit": 74.9985, + "ECommerce.quantity": 3, + "ECommerce.rowId": 9618, + "ECommerce.sales": 899.982, + "ECommerce.subCategory": "Copiers", + }, + Object { + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Bowling", + "ECommerce.customerId": "BS-11380", + "ECommerce.customerName": "Customer 9", + "ECommerce.discount": 0.2, + "ECommerce.orderDate": "2020-11-16T00:00:00.000", + "ECommerce.orderId": "CA-2017-160633", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.profit": 5.397, + "ECommerce.quantity": 3, + "ECommerce.rowId": 9619, + "ECommerce.sales": 86.352, + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: partitioned pre-agg 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Glendale", - "ECommerce.customerId": "EM-14140", - "ECommerce.customerName": "Customer 18", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-12T00:00:00.000", - "ECommerce.orderId": "CA-2017-134915", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 9.9652, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2952, - "ECommerce.sales": 113.888, - "ECommerce.subCategory": "Chairs", + "ECommerce.orderDate": "2020-02-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 10.3904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3059, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "ECommerce.orderDate": "2020-03-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", - "ECommerce.profit": -3.3506, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3060, - "ECommerce.sales": 24.368, - "ECommerce.subCategory": "Tables", + "ECommerce.orderDate": "2020-03-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Louisville", - "ECommerce.customerId": "DW-13480", - "ECommerce.customerName": "Customer 17", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-27T00:00:00.000", - "ECommerce.orderId": "US-2017-132297", + "ECommerce.orderDate": "2020-04-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-05-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-05-01T00:00:00.000", "ECommerce.productName": "Google Nexus 6", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 3083, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "ECommerce.totalQuantity": "3", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Auburn", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-11T00:00:00.000", - "ECommerce.orderId": "CA-2017-102554", + "ECommerce.orderDate": "2020-05-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-05-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-05-01T00:00:00.000", "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3448, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Omaha", - "ECommerce.customerId": "JO-15550", - "ECommerce.customerName": "Customer 24", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-29T00:00:00.000", - "ECommerce.orderId": "CA-2017-144568", + "ECommerce.orderDate": "2020-05-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-05-01T00:00:00.000", "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": 1.1775, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3717, - "ECommerce.sales": 23.55, - "ECommerce.subCategory": "Fasteners", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bakersfield", - "ECommerce.customerId": "AW-10840", - "ECommerce.customerName": "Customer 4", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-123001", + "ECommerce.orderDate": "2020-05-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-06-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-06-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-06-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-06-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-06-01T00:00:00.000", "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 2.726, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3934, - "ECommerce.sales": 9.4, - "ECommerce.subCategory": "Art", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "CC-12475", - "ECommerce.customerName": "Customer 12", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-21T00:00:00.000", - "ECommerce.orderId": "CA-2017-100811", - "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", - "ECommerce.profit": 3.9296, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4012, - "ECommerce.sales": 39.296, - "ECommerce.subCategory": "Storage", + "ECommerce.orderDate": "2020-06-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "6", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lafayette", - "ECommerce.customerId": "CS-12355", - "ECommerce.customerName": "Customer 14", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-24T00:00:00.000", - "ECommerce.orderId": "CA-2017-124296", - "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", - "ECommerce.profit": 60.5488, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4031, - "ECommerce.sales": 232.88, - "ECommerce.subCategory": "Chairs", + "ECommerce.orderDate": "2020-06-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "AH-10465", - "ECommerce.customerName": "Customer 1", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-115546", - "ECommerce.productName": "Google Nexus 7", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 4161, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-10-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-10-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-10-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-10-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "WB-21850", - "ECommerce.customerName": "Customer 41", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-11T00:00:00.000", - "ECommerce.orderId": "CA-2017-120327", + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 21.5824, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4227, - "ECommerce.sales": 45.92, - "ECommerce.subCategory": "Fasteners", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "TB-21175", - "ECommerce.customerName": "Customer 39", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-143567", - "ECommerce.productName": "Logitech di_Novo Edge Keyboard", - "ECommerce.profit": 517.4793, - "ECommerce.quantity": 9, - "ECommerce.rowId": 4882, - "ECommerce.sales": 2249.91, - "ECommerce.subCategory": "Accessories", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "CA-12775", - "ECommerce.customerName": "Customer 11", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-145653", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 134.5302, - "ECommerce.quantity": 7, - "ECommerce.rowId": 5220, - "ECommerce.sales": 498.26, - "ECommerce.subCategory": "Chairs", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KL-16555", - "ECommerce.customerName": "Customer 27", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-147333", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", - "ECommerce.profit": 8.5025, - "ECommerce.quantity": 5, - "ECommerce.rowId": 5277, - "ECommerce.sales": 44.75, - "ECommerce.subCategory": "Accessories", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Los Angeles", - "ECommerce.customerId": "SS-20140", - "ECommerce.customerName": "Customer 38", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-03T00:00:00.000", - "ECommerce.orderId": "CA-2017-145772", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", - "ECommerce.profit": 8.5025, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6125, - "ECommerce.sales": 44.75, - "ECommerce.subCategory": "Accessories", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Marion", - "ECommerce.customerId": "MG-17650", - "ECommerce.customerName": "Customer 32", - "ECommerce.discount": 0.2, "ECommerce.orderDate": "2020-12-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-145660", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 1.7352, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6205, - "ECommerce.sales": 7.712, - "ECommerce.subCategory": "Furnishings", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Oakland", - "ECommerce.customerId": "BB-11545", - "ECommerce.customerName": "Customer 5", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-102379", + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "ECommerce.profit": 44.975, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6272, - "ECommerce.sales": 179.9, - "ECommerce.subCategory": "Art", + "ECommerce.totalQuantity": "5", }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: partitioned pre-agg higher granularity 1`] = ` +Array [ Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Baltimore", - "ECommerce.customerId": "AJ-10780", - "ECommerce.customerName": "Customer 2", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "US-2017-133361", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6459, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Arlington", - "ECommerce.customerId": "BF-11020", - "ECommerce.customerName": "Customer 6", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-08T00:00:00.000", - "ECommerce.orderId": "US-2017-124779", - "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 15.498, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6651, - "ECommerce.sales": 45.92, - "ECommerce.subCategory": "Fasteners", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Houston", - "ECommerce.customerId": "HK-14890", - "ECommerce.customerName": "Customer 22", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-03-26T00:00:00.000", - "ECommerce.orderId": "US-2017-141677", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", "ECommerce.productName": "Canon PC1080F Personal Copier", - "ECommerce.profit": 569.9905, - "ECommerce.quantity": 5, - "ECommerce.rowId": 7174, - "ECommerce.sales": 2399.96, - "ECommerce.subCategory": "Copiers", + "ECommerce.totalQuantity": "7", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "LR-16915", - "ECommerce.customerName": "Customer 30", - "ECommerce.discount": 0.5, - "ECommerce.orderDate": "2020-12-04T00:00:00.000", - "ECommerce.orderId": "CA-2017-109183", - "ECommerce.productName": "Okidata C610n Printer", - "ECommerce.profit": -272.58, - "ECommerce.quantity": 2, - "ECommerce.rowId": 7293, - "ECommerce.sales": 649, - "ECommerce.subCategory": "Machines", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "New York City", - "ECommerce.customerId": "MM-18280", - "ECommerce.customerName": "Customer 34", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-112172", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": 0.7065, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7310, - "ECommerce.sales": 14.13, - "ECommerce.subCategory": "Fasteners", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "BS-11755", - "ECommerce.customerName": "Customer 10", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-04-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-135069", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 6.4176, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7425, - "ECommerce.sales": 36.672, - "ECommerce.subCategory": "Furnishings", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BF-11170", - "ECommerce.customerName": "Customer 7", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-151799", - "ECommerce.productName": "Canon PC1080F Personal Copier", - "ECommerce.profit": 467.9922, - "ECommerce.quantity": 2, - "ECommerce.rowId": 7698, - "ECommerce.sales": 1199.98, - "ECommerce.subCategory": "Copiers", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lakewood", - "ECommerce.customerId": "NP-18670", - "ECommerce.customerName": "Customer 35", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-12T00:00:00.000", - "ECommerce.orderId": "CA-2017-150091", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 129.294, - "ECommerce.quantity": 5, - "ECommerce.rowId": 8425, - "ECommerce.sales": 2154.9, - "ECommerce.subCategory": "Bookcases", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Dallas", - "ECommerce.customerId": "LC-17050", - "ECommerce.customerName": "Customer 29", - "ECommerce.discount": 0.6, - "ECommerce.orderDate": "2020-11-06T00:00:00.000", - "ECommerce.orderId": "US-2017-119319", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": -19.864, - "ECommerce.quantity": 5, - "ECommerce.rowId": 8621, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Decatur", - "ECommerce.customerId": "JS-16030", - "ECommerce.customerName": "Customer 25", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-02-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-163265", - "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 6.1992, - "ECommerce.quantity": 2, - "ECommerce.rowId": 8673, - "ECommerce.sales": 18.368, - "ECommerce.subCategory": "Fasteners", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "TS-21205", - "ECommerce.customerName": "Customer 40", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-15T00:00:00.000", - "ECommerce.orderId": "CA-2017-119284", - "ECommerce.productName": "HTC One", - "ECommerce.profit": 26.9973, - "ECommerce.quantity": 3, - "ECommerce.rowId": 8697, - "ECommerce.sales": 239.976, - "ECommerce.subCategory": "Phones", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Morristown", - "ECommerce.customerId": "GZ-14470", - "ECommerce.customerName": "Customer 20", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-126928", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "ECommerce.profit": 225.6, - "ECommerce.quantity": 4, - "ECommerce.rowId": 8878, - "ECommerce.sales": 480, - "ECommerce.subCategory": "Machines", + "ECommerce.totalQuantity": "6", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "JH-15430", - "ECommerce.customerName": "Customer 23", - "ECommerce.discount": 0.5, - "ECommerce.orderDate": "2020-12-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-105620", - "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "ECommerce.profit": -7.2, - "ECommerce.quantity": 2, - "ECommerce.rowId": 8958, - "ECommerce.sales": 120, - "ECommerce.subCategory": "Machines", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "14", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "New York City", - "ECommerce.customerId": "CD-12280", - "ECommerce.customerName": "Customer 13", - "ECommerce.discount": 0.1, - "ECommerce.orderDate": "2020-11-05T00:00:00.000", - "ECommerce.orderId": "CA-2017-102925", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 24.2012, - "ECommerce.quantity": 2, - "ECommerce.rowId": 9473, - "ECommerce.sales": 128.124, - "ECommerce.subCategory": "Chairs", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "New York City", - "ECommerce.customerId": "SB-20185", - "ECommerce.customerName": "Customer 37", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-116127", - "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", - "ECommerce.profit": -5.0098, - "ECommerce.quantity": 1, - "ECommerce.rowId": 9584, - "ECommerce.sales": 400.784, - "ECommerce.subCategory": "Bookcases", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BS-11380", - "ECommerce.customerName": "Customer 9", - "ECommerce.discount": 0.4, - "ECommerce.orderDate": "2020-11-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-160633", - "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", - "ECommerce.profit": 74.9985, - "ECommerce.quantity": 3, - "ECommerce.rowId": 9618, - "ECommerce.sales": 899.982, - "ECommerce.subCategory": "Copiers", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "9", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bowling", - "ECommerce.customerId": "BS-11380", - "ECommerce.customerName": "Customer 9", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-160633", - "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "ECommerce.profit": 5.397, - "ECommerce.quantity": 3, - "ECommerce.rowId": 9619, - "ECommerce.sales": 86.352, - "ECommerce.subCategory": "Art", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", }, -] -`; - -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions 1`] = ` -Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "MC-17605", - "ECommerce.customerName": "Customer 31", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-01-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-145142", - "ECommerce.productName": "Balt Solid Wood Rectangular Table", - "ECommerce.profit": 21.098, - "ECommerce.quantity": 2, - "ECommerce.rowId": 523, - "ECommerce.sales": 210.98, - "ECommerce.subCategory": "Tables", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lorain", - "ECommerce.customerId": "GA-14725", - "ECommerce.customerName": "Customer 19", - "ECommerce.discount": 0.2, "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-107503", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 8.5568, - "ECommerce.quantity": 4, - "ECommerce.rowId": 849, - "ECommerce.sales": 48.896, - "ECommerce.subCategory": "Furnishings", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Olympia", - "ECommerce.customerId": "PF-19165", - "ECommerce.customerName": "Customer 36", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-118437", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", "ECommerce.productName": "Project Tote Personal File", - "ECommerce.profit": 4.0687, - "ECommerce.quantity": 1, - "ECommerce.rowId": 1013, - "ECommerce.sales": 14.03, - "ECommerce.subCategory": "Storage", + "ECommerce.totalQuantity": "1", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-30T00:00:00.000", - "ECommerce.orderId": "CA-2017-139661", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 3.6632, - "ECommerce.quantity": 2, - "ECommerce.rowId": 1494, - "ECommerce.sales": 9.64, - "ECommerce.subCategory": "Furnishings", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "ML-17755", - "ECommerce.customerName": "Customer 33", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-133648", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": -2.1195, - "ECommerce.quantity": 3, - "ECommerce.rowId": 1995, - "ECommerce.sales": 11.304, - "ECommerce.subCategory": "Fasteners", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-23T00:00:00.000", - "ECommerce.orderId": "CA-2017-138422", - "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", - "ECommerce.profit": 5.2026, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2329, - "ECommerce.sales": 14.352, - "ECommerce.subCategory": "Envelopes", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "11", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "DB-13405", - "ECommerce.customerName": "Customer 15", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-03-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-140949", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", - "ECommerce.profit": 13.604, - "ECommerce.quantity": 8, - "ECommerce.rowId": 2455, - "ECommerce.sales": 71.6, - "ECommerce.subCategory": "Accessories", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- rounding in athena 1`] = ` +Array [ Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BM-11650", - "ECommerce.customerName": "Customer 8", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-13T00:00:00.000", - "ECommerce.orderId": "CA-2017-149048", - "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", - "ECommerce.profit": 81.432, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2595, - "ECommerce.sales": 180.96, - "ECommerce.subCategory": "Envelopes", + "ECommerce.avgDiscount": "0.1", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalProfit": "1037.9827", + "ECommerce.totalQuantity": "7", + "ECommerce.totalSales": "3599.94", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Provo", - "ECommerce.customerId": "AS-10225", - "ECommerce.customerName": "Customer 3", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-112515", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 77.5764, - "ECommerce.quantity": 3, - "ECommerce.rowId": 2655, - "ECommerce.sales": 1292.94, - "ECommerce.subCategory": "Bookcases", + "ECommerce.avgDiscount": "0", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalProfit": "517.4793", + "ECommerce.totalQuantity": "9", + "ECommerce.totalSales": "2249.91", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "DG-13300", - "ECommerce.customerName": "Customer 16", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-28T00:00:00.000", - "ECommerce.orderId": "CA-2017-123372", + "ECommerce.avgDiscount": "0", "ECommerce.productName": "Google Nexus 5", - "ECommerce.profit": 494.9725, - "ECommerce.quantity": 11, - "ECommerce.rowId": 2661, - "ECommerce.sales": 1979.89, - "ECommerce.subCategory": "Phones", + "ECommerce.totalProfit": "494.9725", + "ECommerce.totalQuantity": "11", + "ECommerce.totalSales": "1979.89", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Glendale", - "ECommerce.customerId": "EM-14140", - "ECommerce.customerName": "Customer 18", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-12T00:00:00.000", - "ECommerce.orderId": "CA-2017-134915", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 9.9652, - "ECommerce.quantity": 2, - "ECommerce.rowId": 2952, - "ECommerce.sales": 113.888, - "ECommerce.subCategory": "Chairs", + "ECommerce.avgDiscount": "0.25", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalProfit": "218.4", + "ECommerce.totalQuantity": "6", + "ECommerce.totalSales": "600", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 10.3904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3059, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "ECommerce.avgDiscount": "0", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalProfit": "206.8704", + "ECommerce.totalQuantity": "8", + "ECommerce.totalSales": "3447.84", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "San Francisco", - "ECommerce.customerId": "HH-15010", - "ECommerce.customerName": "Customer 21", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", - "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", - "ECommerce.profit": -3.3506, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3060, - "ECommerce.sales": 24.368, - "ECommerce.subCategory": "Tables", + "ECommerce.avgDiscount": "0.1", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalProfit": "168.6966", + "ECommerce.totalQuantity": "11", + "ECommerce.totalSales": "740.272", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Louisville", - "ECommerce.customerId": "DW-13480", - "ECommerce.customerName": "Customer 17", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-27T00:00:00.000", - "ECommerce.orderId": "US-2017-132297", + "ECommerce.avgDiscount": "0", "ECommerce.productName": "Google Nexus 6", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 3083, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", - }, - Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Auburn", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-11T00:00:00.000", - "ECommerce.orderId": "CA-2017-102554", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3448, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "ECommerce.totalProfit": "134.9925", + "ECommerce.totalQuantity": "3", + "ECommerce.totalSales": "539.97", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Omaha", - "ECommerce.customerId": "JO-15550", - "ECommerce.customerName": "Customer 24", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-29T00:00:00.000", - "ECommerce.orderId": "CA-2017-144568", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": 1.1775, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3717, - "ECommerce.sales": 23.55, - "ECommerce.subCategory": "Fasteners", + "ECommerce.avgDiscount": "0", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalProfit": "134.9925", + "ECommerce.totalQuantity": "3", + "ECommerce.totalSales": "539.97", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bakersfield", - "ECommerce.customerId": "AW-10840", - "ECommerce.customerName": "Customer 4", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-123001", - "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 2.726, - "ECommerce.quantity": 5, - "ECommerce.rowId": 3934, - "ECommerce.sales": 9.4, - "ECommerce.subCategory": "Art", + "ECommerce.avgDiscount": "0", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalProfit": "81.432", + "ECommerce.totalQuantity": "2", + "ECommerce.totalSales": "180.96", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "CC-12475", - "ECommerce.customerName": "Customer 12", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-21T00:00:00.000", - "ECommerce.orderId": "CA-2017-100811", - "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", - "ECommerce.profit": 3.9296, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4012, - "ECommerce.sales": 39.296, - "ECommerce.subCategory": "Storage", + "ECommerce.avgDiscount": "0.4", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalProfit": "74.9985", + "ECommerce.totalQuantity": "3", + "ECommerce.totalSales": "899.982", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lafayette", - "ECommerce.customerId": "CS-12355", - "ECommerce.customerName": "Customer 14", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-24T00:00:00.000", - "ECommerce.orderId": "CA-2017-124296", + "ECommerce.avgDiscount": "0", "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", - "ECommerce.profit": 60.5488, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4031, - "ECommerce.sales": 232.88, - "ECommerce.subCategory": "Chairs", + "ECommerce.totalProfit": "60.5488", + "ECommerce.totalQuantity": "4", + "ECommerce.totalSales": "232.88", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "AH-10465", - "ECommerce.customerName": "Customer 1", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-115546", - "ECommerce.productName": "Google Nexus 7", - "ECommerce.profit": 134.9925, - "ECommerce.quantity": 3, - "ECommerce.rowId": 4161, - "ECommerce.sales": 539.97, - "ECommerce.subCategory": "Phones", + "ECommerce.avgDiscount": "0.1", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalProfit": "50.372", + "ECommerce.totalQuantity": "8", + "ECommerce.totalSales": "266.252", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "WB-21850", - "ECommerce.customerName": "Customer 41", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-11T00:00:00.000", - "ECommerce.orderId": "CA-2017-120327", + "ECommerce.avgDiscount": "0.13333", "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 21.5824, - "ECommerce.quantity": 4, - "ECommerce.rowId": 4227, - "ECommerce.sales": 45.92, - "ECommerce.subCategory": "Fasteners", + "ECommerce.totalProfit": "43.2796", + "ECommerce.totalQuantity": "11", + "ECommerce.totalSales": "110.208", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "TB-21175", - "ECommerce.customerName": "Customer 39", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-11-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-143567", - "ECommerce.productName": "Logitech di_Novo Edge Keyboard", - "ECommerce.profit": 517.4793, - "ECommerce.quantity": 9, - "ECommerce.rowId": 4882, - "ECommerce.sales": 2249.91, - "ECommerce.subCategory": "Accessories", + "ECommerce.avgDiscount": "0.2", + "ECommerce.productName": "HTC One", + "ECommerce.totalProfit": "26.9973", + "ECommerce.totalQuantity": "3", + "ECommerce.totalSales": "239.976", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Detroit", - "ECommerce.customerId": "CA-12775", - "ECommerce.customerName": "Customer 11", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-145653", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 134.5302, - "ECommerce.quantity": 7, - "ECommerce.rowId": 5220, - "ECommerce.sales": 498.26, - "ECommerce.subCategory": "Chairs", + "ECommerce.avgDiscount": "0", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.totalProfit": "21.098", + "ECommerce.totalQuantity": "2", + "ECommerce.totalSales": "210.98", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "KL-16555", - "ECommerce.customerName": "Customer 27", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-147333", + "ECommerce.avgDiscount": "0", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalProfit": "13.604", + "ECommerce.totalQuantity": "8", + "ECommerce.totalSales": "71.6", + }, + Object { + "ECommerce.avgDiscount": "0", "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", - "ECommerce.profit": 8.5025, - "ECommerce.quantity": 5, - "ECommerce.rowId": 5277, - "ECommerce.sales": 44.75, - "ECommerce.subCategory": "Accessories", + "ECommerce.totalProfit": "8.5025", + "ECommerce.totalQuantity": "5", + "ECommerce.totalSales": "44.75", + }, + Object { + "ECommerce.avgDiscount": "0", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalProfit": "8.5025", + "ECommerce.totalQuantity": "5", + "ECommerce.totalSales": "44.75", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Los Angeles", - "ECommerce.customerId": "SS-20140", - "ECommerce.customerName": "Customer 38", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-03T00:00:00.000", - "ECommerce.orderId": "CA-2017-145772", - "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", - "ECommerce.profit": 8.5025, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6125, - "ECommerce.sales": 44.75, - "ECommerce.subCategory": "Accessories", + "ECommerce.avgDiscount": "0.25", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalProfit": "5.5008", + "ECommerce.totalQuantity": "14", + "ECommerce.totalSales": "146.688", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Marion", - "ECommerce.customerId": "MG-17650", - "ECommerce.customerName": "Customer 32", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-12-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-145660", + "ECommerce.avgDiscount": "0.1", "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.profit": 1.7352, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6205, - "ECommerce.sales": 7.712, - "ECommerce.subCategory": "Furnishings", + "ECommerce.totalProfit": "5.3984", + "ECommerce.totalQuantity": "4", + "ECommerce.totalSales": "17.352", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Oakland", - "ECommerce.customerId": "BB-11545", - "ECommerce.customerName": "Customer 5", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-02T00:00:00.000", - "ECommerce.orderId": "CA-2017-102379", - "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "ECommerce.profit": 44.975, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6272, - "ECommerce.sales": 179.9, - "ECommerce.subCategory": "Art", + "ECommerce.avgDiscount": "0.2", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalProfit": "5.2026", + "ECommerce.totalQuantity": "3", + "ECommerce.totalSales": "14.352", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Baltimore", - "ECommerce.customerId": "AJ-10780", - "ECommerce.customerName": "Customer 2", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "US-2017-133361", + "ECommerce.avgDiscount": "0", "ECommerce.productName": "OIC #2 Pencils, Medium Soft", - "ECommerce.profit": 1.0904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 6459, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", - }, - Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Arlington", - "ECommerce.customerId": "BF-11020", - "ECommerce.customerName": "Customer 6", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-09-08T00:00:00.000", - "ECommerce.orderId": "US-2017-124779", - "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 15.498, - "ECommerce.quantity": 5, - "ECommerce.rowId": 6651, - "ECommerce.sales": 45.92, - "ECommerce.subCategory": "Fasteners", + "ECommerce.totalProfit": "4.9068", + "ECommerce.totalQuantity": "9", + "ECommerce.totalSales": "16.92", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Houston", - "ECommerce.customerId": "HK-14890", - "ECommerce.customerName": "Customer 22", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-03-26T00:00:00.000", - "ECommerce.orderId": "US-2017-141677", - "ECommerce.productName": "Canon PC1080F Personal Copier", - "ECommerce.profit": 569.9905, - "ECommerce.quantity": 5, - "ECommerce.rowId": 7174, - "ECommerce.sales": 2399.96, - "ECommerce.subCategory": "Copiers", + "ECommerce.avgDiscount": "0", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalProfit": "4.0687", + "ECommerce.totalQuantity": "1", + "ECommerce.totalSales": "14.03", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "LR-16915", - "ECommerce.customerName": "Customer 30", - "ECommerce.discount": 0.5, - "ECommerce.orderDate": "2020-12-04T00:00:00.000", - "ECommerce.orderId": "CA-2017-109183", - "ECommerce.productName": "Okidata C610n Printer", - "ECommerce.profit": -272.58, - "ECommerce.quantity": 2, - "ECommerce.rowId": 7293, - "ECommerce.sales": 649, - "ECommerce.subCategory": "Machines", + "ECommerce.avgDiscount": "0.2", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalProfit": "3.9296", + "ECommerce.totalQuantity": "4", + "ECommerce.totalSales": "39.296", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "New York City", - "ECommerce.customerId": "MM-18280", - "ECommerce.customerName": "Customer 34", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-112172", + "ECommerce.avgDiscount": "0.06666", "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": 0.7065, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7310, - "ECommerce.sales": 14.13, - "ECommerce.subCategory": "Fasteners", + "ECommerce.totalProfit": "-0.2355", + "ECommerce.totalQuantity": "11", + "ECommerce.totalSales": "48.984", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Philadelphia", - "ECommerce.customerId": "BS-11755", - "ECommerce.customerName": "Customer 10", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-04-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-135069", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 6.4176, - "ECommerce.quantity": 3, - "ECommerce.rowId": 7425, - "ECommerce.sales": 36.672, - "ECommerce.subCategory": "Furnishings", + "ECommerce.avgDiscount": "0.2", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalProfit": "-3.3506", + "ECommerce.totalQuantity": "2", + "ECommerce.totalSales": "24.368", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BF-11170", - "ECommerce.customerName": "Customer 7", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-12-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-151799", - "ECommerce.productName": "Canon PC1080F Personal Copier", - "ECommerce.profit": 467.9922, - "ECommerce.quantity": 2, - "ECommerce.rowId": 7698, - "ECommerce.sales": 1199.98, - "ECommerce.subCategory": "Copiers", + "ECommerce.avgDiscount": "0.2", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalProfit": "-5.0098", + "ECommerce.totalQuantity": "1", + "ECommerce.totalSales": "400.784", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Lakewood", - "ECommerce.customerId": "NP-18670", - "ECommerce.customerName": "Customer 35", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-10-12T00:00:00.000", - "ECommerce.orderId": "CA-2017-150091", - "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", - "ECommerce.profit": 129.294, - "ECommerce.quantity": 5, - "ECommerce.rowId": 8425, - "ECommerce.sales": 2154.9, - "ECommerce.subCategory": "Bookcases", + "ECommerce.avgDiscount": "0.5", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalProfit": "-272.58", + "ECommerce.totalQuantity": "2", + "ECommerce.totalSales": "649", }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: total sales, total profit by month + order (date) + total -- doesn't work with the BigQuery 1`] = ` +Array [ Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "Dallas", - "ECommerce.customerId": "LC-17050", - "ECommerce.customerName": "Customer 29", - "ECommerce.discount": 0.6, - "ECommerce.orderDate": "2020-11-06T00:00:00.000", - "ECommerce.orderId": "US-2017-119319", - "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": -19.864, - "ECommerce.quantity": 5, - "ECommerce.rowId": 8621, - "ECommerce.sales": 30.56, - "ECommerce.subCategory": "Furnishings", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "ECommerce.totalProfit": "29.6548", + "ECommerce.totalSales": "259.876", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Decatur", - "ECommerce.customerId": "JS-16030", - "ECommerce.customerName": "Customer 25", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-02-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-163265", - "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", - "ECommerce.profit": 6.1992, - "ECommerce.quantity": 2, - "ECommerce.rowId": 8673, - "ECommerce.sales": 18.368, - "ECommerce.subCategory": "Fasteners", + "ECommerce.orderDate": "2020-02-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "ECommerce.totalProfit": "6.1992", + "ECommerce.totalSales": "18.368", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "TS-21205", - "ECommerce.customerName": "Customer 40", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-15T00:00:00.000", - "ECommerce.orderId": "CA-2017-119284", - "ECommerce.productName": "HTC One", - "ECommerce.profit": 26.9973, - "ECommerce.quantity": 3, - "ECommerce.rowId": 8697, - "ECommerce.sales": 239.976, - "ECommerce.subCategory": "Phones", + "ECommerce.orderDate": "2020-03-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "ECommerce.totalProfit": "583.5945", + "ECommerce.totalSales": "2471.56", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Morristown", - "ECommerce.customerId": "GZ-14470", - "ECommerce.customerName": "Customer 20", - "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-09-17T00:00:00.000", - "ECommerce.orderId": "CA-2017-126928", - "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "ECommerce.profit": 225.6, - "ECommerce.quantity": 4, - "ECommerce.rowId": 8878, - "ECommerce.sales": 480, - "ECommerce.subCategory": "Machines", + "ECommerce.orderDate": "2020-04-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "ECommerce.totalProfit": "6.4176", + "ECommerce.totalSales": "36.672", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "JH-15430", - "ECommerce.customerName": "Customer 23", - "ECommerce.discount": 0.5, - "ECommerce.orderDate": "2020-12-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-105620", - "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", - "ECommerce.profit": -7.2, - "ECommerce.quantity": 2, - "ECommerce.rowId": 8958, - "ECommerce.sales": 120, - "ECommerce.subCategory": "Machines", + "ECommerce.orderDate": "2020-05-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "ECommerce.totalProfit": "353.6849", + "ECommerce.totalSales": "1288.21", }, Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "New York City", - "ECommerce.customerId": "CD-12280", - "ECommerce.customerName": "Customer 13", - "ECommerce.discount": 0.1, - "ECommerce.orderDate": "2020-11-05T00:00:00.000", - "ECommerce.orderId": "CA-2017-102925", - "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", - "ECommerce.profit": 24.2012, - "ECommerce.quantity": 2, - "ECommerce.rowId": 9473, - "ECommerce.sales": 128.124, - "ECommerce.subCategory": "Chairs", + "ECommerce.orderDate": "2020-06-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "ECommerce.totalProfit": "34.2361", + "ECommerce.totalSales": "728.734", }, - Object { - "ECommerce.category": "Furniture", - "ECommerce.city": "New York City", - "ECommerce.customerId": "SB-20185", - "ECommerce.customerName": "Customer 37", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-06-25T00:00:00.000", - "ECommerce.orderId": "CA-2017-116127", - "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", - "ECommerce.profit": -5.0098, - "ECommerce.quantity": 1, - "ECommerce.rowId": 9584, - "ECommerce.sales": 400.784, - "ECommerce.subCategory": "Bookcases", + Object { + "ECommerce.orderDate": "2020-09-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "ECommerce.totalProfit": "461.1332", + "ECommerce.totalSales": "2340.872", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BS-11380", - "ECommerce.customerName": "Customer 9", - "ECommerce.discount": 0.4, - "ECommerce.orderDate": "2020-11-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-160633", - "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", - "ECommerce.profit": 74.9985, - "ECommerce.quantity": 3, - "ECommerce.rowId": 9618, - "ECommerce.sales": 899.982, - "ECommerce.subCategory": "Copiers", + "ECommerce.orderDate": "2020-10-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "ECommerce.totalProfit": "139.997", + "ECommerce.totalSales": "2219.468", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bowling", - "ECommerce.customerId": "BS-11380", - "ECommerce.customerName": "Customer 9", - "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-11-16T00:00:00.000", - "ECommerce.orderId": "CA-2017-160633", - "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", - "ECommerce.profit": 5.397, - "ECommerce.quantity": 3, - "ECommerce.rowId": 9619, - "ECommerce.sales": 86.352, - "ECommerce.subCategory": "Art", + "ECommerce.orderDate": "2020-11-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "ECommerce.totalProfit": "1132.6617", + "ECommerce.totalSales": "5573.922", + }, + Object { + "ECommerce.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "ECommerce.totalProfit": "303.9737", + "ECommerce.totalSales": "2434.222", }, ] `; @@ -7856,6 +15864,256 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/mysql-driver querying Products: dimensions -- doesn't work wo ordering 1`] = ` +Array [ + Object { + "Products.category": "Furniture", + "Products.productName": "DMI Eclipse Executive Suite Bookcases", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "Products.subCategory": "Bookcases", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Harbour Creations 67200 Series Stacking Chairs", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "Products.subCategory": "Chairs", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Linden 10 Round Wall Clock, Black", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Magna Visual Magnetic Picture Hangers", + "Products.subCategory": "Furnishings", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Anderson Hickey Conga Table Tops & Accessories", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Furniture", + "Products.productName": "Balt Solid Wood Rectangular Table", + "Products.subCategory": "Tables", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "OIC #2 Pencils, Medium Soft", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "Products.subCategory": "Art", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Wausau Papers Astrobrights Colored Envelopes", + "Products.subCategory": "Envelopes", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "Products.subCategory": "Fasteners", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Project Tote Personal File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Office Supplies", + "Products.productName": "Recycled Eldon Regeneration Jumbo File", + "Products.subCategory": "Storage", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Logitech di_Novo Edge Keyboard", + "Products.subCategory": "Accessories", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Canon PC1080F Personal Copier", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "Products.subCategory": "Copiers", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Okidata C610n Printer", + "Products.subCategory": "Machines", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 5", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 6", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "Google Nexus 7", + "Products.subCategory": "Phones", + }, + Object { + "Products.category": "Technology", + "Products.productName": "HTC One", + "Products.subCategory": "Phones", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying SwitchSourceTest: filter by switch dimensions 1`] = ` +Array [ + Object { + "SwitchSourceTest.city": "Detroit", + "SwitchSourceTest.orderDate": "2020-01-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-01-01T00:00:00.000", + "SwitchSourceTest.totalSales": 210.98, + }, + Object { + "SwitchSourceTest.city": "Lorain", + "SwitchSourceTest.orderDate": "2020-01-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-01-01T00:00:00.000", + "SwitchSourceTest.totalSales": 48.896, + }, + Object { + "SwitchSourceTest.city": "Decatur", + "SwitchSourceTest.orderDate": "2020-02-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-02-01T00:00:00.000", + "SwitchSourceTest.totalSales": 18.368, + }, + Object { + "SwitchSourceTest.city": "Houston", + "SwitchSourceTest.orderDate": "2020-03-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-03-01T00:00:00.000", + "SwitchSourceTest.totalSales": 2399.96, + }, + Object { + "SwitchSourceTest.city": "New York City", + "SwitchSourceTest.orderDate": "2020-03-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-03-01T00:00:00.000", + "SwitchSourceTest.totalSales": 71.6, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying SwitchSourceTest: full cross join 1`] = ` +Array [ + Object { + "SwitchSourceTest.city": "Detroit", + "SwitchSourceTest.orderDate": "2020-01-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-01-01T00:00:00.000", + "SwitchSourceTest.totalSales": 1265.88, + }, + Object { + "SwitchSourceTest.city": "Lorain", + "SwitchSourceTest.orderDate": "2020-01-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-01-01T00:00:00.000", + "SwitchSourceTest.totalSales": 293.376, + }, + Object { + "SwitchSourceTest.city": "Decatur", + "SwitchSourceTest.orderDate": "2020-02-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-02-01T00:00:00.000", + "SwitchSourceTest.totalSales": 110.208, + }, + Object { + "SwitchSourceTest.city": "Houston", + "SwitchSourceTest.orderDate": "2020-03-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-03-01T00:00:00.000", + "SwitchSourceTest.totalSales": 14399.76, + }, + Object { + "SwitchSourceTest.city": "New York City", + "SwitchSourceTest.orderDate": "2020-03-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-03-01T00:00:00.000", + "SwitchSourceTest.totalSales": 429.6, + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying SwitchSourceTest: simple cross join 1`] = ` +Array [ + Object { + "SwitchSourceTest.city": "Detroit", + "SwitchSourceTest.orderDate": "2020-01-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-01-01T00:00:00.000", + "SwitchSourceTest.totalSalesA": 421.96, + }, + Object { + "SwitchSourceTest.city": "Lorain", + "SwitchSourceTest.orderDate": "2020-01-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-01-01T00:00:00.000", + "SwitchSourceTest.totalSalesA": 97.792, + }, + Object { + "SwitchSourceTest.city": "Decatur", + "SwitchSourceTest.orderDate": "2020-02-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-02-01T00:00:00.000", + "SwitchSourceTest.totalSalesA": 36.736, + }, + Object { + "SwitchSourceTest.city": "Houston", + "SwitchSourceTest.orderDate": "2020-03-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-03-01T00:00:00.000", + "SwitchSourceTest.totalSalesA": 4799.92, + }, + Object { + "SwitchSourceTest.city": "New York City", + "SwitchSourceTest.orderDate": "2020-03-01T00:00:00.000", + "SwitchSourceTest.orderDate.month": "2020-03-01T00:00:00.000", + "SwitchSourceTest.totalSalesA": 143.2, + }, +] +`; + exports[`Queries with the @cubejs-backend/mysql-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` Array [ Object { @@ -8535,6 +16793,46 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/mysql-driver querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range 1`] = ` +Array [ + Object { + "ECommerce.customOrderDateNoPreAgg": "2019-12-01T10:00:00.000", + "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2019-12-01T10:00:00.000", + "ECommerce.rollingCountByLeading": 8, + }, + Object { + "ECommerce.customOrderDateNoPreAgg": "2020-02-01T10:00:00.000", + "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-02-01T10:00:00.000", + "ECommerce.rollingCountByLeading": 12, + }, + Object { + "ECommerce.customOrderDateNoPreAgg": "2020-04-01T10:00:00.000", + "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-04-01T10:00:00.000", + "ECommerce.rollingCountByLeading": 6, + }, + Object { + "ECommerce.customOrderDateNoPreAgg": "2020-06-01T10:00:00.000", + "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-06-01T10:00:00.000", + "ECommerce.rollingCountByLeading": 19, + }, + Object { + "ECommerce.customOrderDateNoPreAgg": "2020-08-01T10:00:00.000", + "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-08-01T10:00:00.000", + "ECommerce.rollingCountByLeading": 16, + }, + Object { + "ECommerce.customOrderDateNoPreAgg": "2020-10-01T10:00:00.000", + "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-10-01T10:00:00.000", + "ECommerce.rollingCountByLeading": null, + }, + Object { + "ECommerce.customOrderDateNoPreAgg": "2020-12-01T10:00:00.000", + "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-12-01T10:00:00.000", + "ECommerce.rollingCountByLeading": null, + }, +] +`; + exports[`Queries with the @cubejs-backend/mysql-driver querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByTrailing 1`] = ` Array [ Object { From 7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443 Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Fri, 24 Oct 2025 20:12:17 +0300 Subject: [PATCH 2/3] feat(api-gateway): Introduce cache mode option for `/cubesql` API (#9972) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add cache option to the query * Pass CacheMode from /cubesql to backend * imject CacheMode into more places * update normalizeQuery with cache mode * pass cache mode within graphql * pass new cache mode in sqlApiLoad in API GW * fix types imports * update preAggs to use cache option instead of renewQuery * code polish * comments with types * fix query type * set default cacheMode = 'stale-if-slow' in normalize() * more types and polish * backbone code for 'stale-if-slow' & 'stale-while-revalidate' * make query cache aware of queryBody.cache === 'must-revalidate' * First attempt to implement 'no-cache' scenario * add cache to open api spec and regenerate rust client * pass cache mode to cubeScan * cargo clippy/fmt * Implement background refresh * add cache mode descriptions * remove query cache mode from normalize query * pass cacheMode to getSqlResponseInternal * remove obsolete * add cacheMode as input param in orchestratorApi * open api spec fix * fix cubesql after introducing cacheMode * rename cache → cacheMode * clean up obsolete * pass cache_mode from SqlApiLoadPayload * fix important * move 'no-cache' variant into queryCache.cachedQueryResult() * remove cacheMode from client query body types (it's incorrect) * switch RefreshScheduler to use cacheMode instead of renewQuery * remove obsolete continueWait flag * fix refresh scheduler * add fallback to renewQuery in api gw * fix tests * Docs * Deprecation * refactor api gw: move copy/paste into this.normalizeCacheMode() * fix tests snapshots * return cacheMode into query object * fix tests * some cleanup (removed renewQuery) * update cacheMod in graphql * return back cache as public prop in query * fix * lint fix # Conflicts: # packages/cubejs-api-gateway/package.json * fix subscribe() * remove cache from subscribe * fix CacheMode serialization * refactor: move normalizeQueryCacheMode to normalize --------- Co-authored-by: Igor Lukanin --- DEPRECATION.md | 8 +- .../product/apis-integrations/rest-api.mdx | 21 +++++- .../rest-api/query-format.mdx | 11 --- .../apis-integrations/rest-api/reference.mdx | 19 +++-- packages/cubejs-api-gateway/openspec.yml | 7 ++ packages/cubejs-api-gateway/package.json | 1 + packages/cubejs-api-gateway/src/gateway.ts | 61 ++++++++------- packages/cubejs-api-gateway/src/graphql.ts | 5 +- packages/cubejs-api-gateway/src/query.js | 36 ++++++++- packages/cubejs-api-gateway/src/sql-server.ts | 9 ++- .../cubejs-api-gateway/src/types/query.ts | 4 + .../cubejs-api-gateway/src/types/request.ts | 11 ++- .../cubejs-api-gateway/test/index.test.ts | 7 ++ packages/cubejs-backend-native/js/index.ts | 18 +++-- .../cubejs-backend-native/src/node_export.rs | 15 ++++ .../cubejs-backend-native/src/transport.rs | 8 +- packages/cubejs-backend-shared/src/index.ts | 1 + .../cubejs-backend-shared/src/shared-types.ts | 22 ++++++ packages/cubejs-client-core/src/types.ts | 1 + packages/cubejs-client-dx/index.d.ts | 1 + .../src/orchestrator/PreAggregations.ts | 4 +- .../src/orchestrator/QueryCache.ts | 56 ++++++++------ .../src/orchestrator/QueryOrchestrator.ts | 3 +- .../src/core/CompilerApi.js | 2 +- .../src/core/OrchestratorApi.ts | 24 +++--- .../src/core/RefreshScheduler.ts | 12 +-- .../cubeclient/.openapi-generator/VERSION | 2 +- rust/cubesql/cubeclient/src/models/mod.rs | 1 + .../cubeclient/src/models/v1_load_request.rs | 21 ++++++ .../cubesql/src/compile/engine/df/scan.rs | 75 +++++++++++++------ .../cubesql/src/compile/rewrite/converter.rs | 8 ++ rust/cubesql/cubesql/src/compile/test/mod.rs | 2 + rust/cubesql/cubesql/src/sql/session.rs | 4 + rust/cubesql/cubesql/src/transport/mod.rs | 1 + rust/cubesql/cubesql/src/transport/service.rs | 17 +++++ 35 files changed, 364 insertions(+), 134 deletions(-) create mode 100644 packages/cubejs-backend-shared/src/shared-types.ts diff --git a/DEPRECATION.md b/DEPRECATION.md index 1ee5c4f14295a..c55794741cc52 100644 --- a/DEPRECATION.md +++ b/DEPRECATION.md @@ -64,8 +64,9 @@ features: | Removed | [`initApp` hook](#initapp-hook) | v0.35.0 | v0.35.0 | | Removed | [`/v1/run-scheduled-refresh` REST API endpoint](#v1run-scheduled-refresh-rest-api-endpoint) | v0.35.0 | v0.36.0 | | Removed | [Node.js 18](#nodejs-18) | v0.36.0 | v1.3.0 | -| Deprecated | [`CUBEJS_SCHEDULED_REFRESH_CONCURRENCY`](#cubejs_scheduled_refresh_concurrency) | v1.2.7 | | +| Deprecated | [`CUBEJS_SCHEDULED_REFRESH_CONCURRENCY`](#cubejs_scheduled_refresh_concurrency) | v1.2.7 | | | Deprecated | [Node.js 20](#nodejs-20) | v1.3.0 | | +| Deprecated | [`renewQuery` parameter of the `/v1/load` endpoint](#renewquery-parameter-of-the-v1load-endpoint) | v1.3.73 | | ### Node.js 8 @@ -412,3 +413,8 @@ This environment variable was renamed to [`CUBEJS_SCHEDULED_REFRESH_QUERIES_PER_ Node.js 20 is in maintenance mode from [November 22, 2024][link-nodejs-eol]. This means no more new features, only security updates. Please upgrade to Node.js 22 or higher. + +### `renewQuery` parameter of the `/v1/load` endpoint + +This parameter is deprecated and will be removed in future releases. See [cache control](https://cube.dev/docs/product/apis-integrations/rest-api#cache-control) +options and use the new `cache` parameter of the `/v1/load` endpoint instead. \ No newline at end of file diff --git a/docs/pages/product/apis-integrations/rest-api.mdx b/docs/pages/product/apis-integrations/rest-api.mdx index 98b1e1d9a0cb7..607d19272472e 100644 --- a/docs/pages/product/apis-integrations/rest-api.mdx +++ b/docs/pages/product/apis-integrations/rest-api.mdx @@ -161,7 +161,7 @@ accessible for everyone. | API scope | REST API endpoints | Accessible by default? | | --- | --- | --- | | `meta` | [`/v1/meta`][ref-ref-meta] | ✅ Yes | -| `data` | [`/v1/load`][ref-ref-load] | ✅ Yes | +| `data` | [`/v1/load`][ref-ref-load], [`/v1/cubesql`][ref-ref-cubesql] | ✅ Yes | | `graphql` | `/graphql` | ✅ Yes | | `sql` | [`/v1/sql`][ref-ref-sql] | ✅ Yes | | `jobs` | [`/v1/pre-aggregations/jobs`][ref-ref-paj] | ❌ No | @@ -248,9 +248,20 @@ should be unique for each separate request. `spanId` should define user interaction span such us `Continue wait` retry cycle and it's value shouldn't change during one single interaction. -## Troubleshooting +## Cache control -### `Continue wait` +[`/v1/load`][ref-ref-load] and [`/v1/cubesql`][ref-ref-cubesql] endpoints of the REST API +allow to control the cache behavior. The following querying strategies with regards to +the cache are supported: + +| Strategy | Description | +| --- | --- | +| `stale-if-slow` | If [refresh keys][ref-refresh-keys] are up-to-date, returns cached value. If expired, tries to return fresh value from the data source. If the data source query is slow (hits [`Continue wait`](#continue-wait)), returns stale value from cache. | +| `stale-while-revalidate`| If [refresh keys][ref-refresh-keys] are up-to-date, returns cached value. If expired, returns stale data from cache and updates cache in background. | +| `must-revalidate` | If [refresh keys][ref-refresh-keys] are up-to-date, returns cached value. If expired, always waits for fresh value from the data source, even if slow (hits one or more [`Continue wait`](#continue-wait) intervals). | +| `no-cache` | Skips [refresh key][ref-refresh-keys] checks. Always returns fresh data from the data source, regardless of cache or query performance. | + +## `Continue wait` If the request takes too long to be processed, the REST API responds with `{ "error": "Continue wait" }` and the status code 200. @@ -295,6 +306,7 @@ warehouse][ref-data-warehouses]. [ref-ref-load]: /product/apis-integrations/rest-api/reference#base_pathv1load [ref-ref-meta]: /product/apis-integrations/rest-api/reference#base_pathv1meta [ref-ref-sql]: /product/apis-integrations/rest-api/reference#base_pathv1sql +[ref-ref-cubesql]: /product/apis-integrations/rest-api/reference#base_pathv1cubesql [ref-ref-paj]: /product/apis-integrations/rest-api/reference#base_pathv1pre-aggregationsjobs [ref-security-context]: /product/auth/context [ref-graphql-api]: /product/apis-integrations/graphql-api @@ -313,4 +325,5 @@ warehouse][ref-data-warehouses]. [ref-traditional-databases]: /product/configuration/data-sources#transactional-databases [ref-pre-aggregations]: /product/caching/using-pre-aggregations [ref-javascript-sdk]: /product/apis-integrations/javascript-sdk -[ref-recipe-real-time-data-fetch]: /product/apis-integrations/recipes/real-time-data-fetch \ No newline at end of file +[ref-recipe-real-time-data-fetch]: /product/apis-integrations/recipes/real-time-data-fetch +[ref-refresh-keys]: /product/data-modeling/reference/cube#refresh_key \ No newline at end of file diff --git a/docs/pages/product/apis-integrations/rest-api/query-format.mdx b/docs/pages/product/apis-integrations/rest-api/query-format.mdx index 12840981bbd74..17683e70f1d0e 100644 --- a/docs/pages/product/apis-integrations/rest-api/query-format.mdx +++ b/docs/pages/product/apis-integrations/rest-api/query-format.mdx @@ -41,17 +41,6 @@ The default value is `false`. - `timezone`: A [time zone][ref-time-zone] for your query. You can set the desired time zone in the [TZ Database Name](https://en.wikipedia.org/wiki/Tz_database) format, e.g., `America/Los_Angeles`. -- `renewQuery`: If `renewQuery` is set to `true`, Cube will renew all - [`refreshKey`][ref-schema-ref-preaggs-refreshkey] for queries and query - results in the foreground. However, if the - [`refreshKey`][ref-schema-ref-preaggs-refreshkey] (or - [`refreshKey.every`][ref-schema-ref-preaggs-refreshkey-every]) doesn't - indicate that there's a need for an update this setting has no effect. The - default value is `false`. - > **NOTE**: Cube provides only eventual consistency guarantee. Using a small - > [`refreshKey.every`][ref-schema-ref-preaggs-refreshkey-every] value together - > with `renewQuery` to achieve immediate consistency can lead to endless - > refresh loops and overall system instability. - `ungrouped`: If set to `true`, Cube will run an [ungrouped query][ref-ungrouped-query]. - `joinHints`: Query-time [join hints][ref-join-hints], provided as an array of diff --git a/docs/pages/product/apis-integrations/rest-api/reference.mdx b/docs/pages/product/apis-integrations/rest-api/reference.mdx index 8e30162750ee8..00c7c2357225f 100644 --- a/docs/pages/product/apis-integrations/rest-api/reference.mdx +++ b/docs/pages/product/apis-integrations/rest-api/reference.mdx @@ -13,10 +13,11 @@ By default, it's `/cubejs-api`. Run the query to the REST API and get the results. -| Parameter | Description | -| ----------- | --------------------------------------------------------------------------------------------------------------------- | -| `query` | Either a single URL encoded Cube [Query](/product/apis-integrations/rest-api/query-format), or an array of queries | -| `queryType` | If multiple queries are passed in `query` for [data blending][ref-recipes-data-blending], this must be set to `multi` | +| Parameter | Description | Required | +| ----------- | --------------------------------------------------------------------------------------------------------------------- | --- | +| `query` | Either a single URL encoded Cube [Query](/product/apis-integrations/rest-api/query-format), or an array of queries | ✅ Yes | +| `queryType` | If multiple queries are passed in `query` for [data blending][ref-recipes-data-blending], this must be set to `multi` | ❌ No | +| `cache` | See [cache control][ref-cache-control]. `stale-if-slow` by default | ❌ No | Response @@ -319,9 +320,10 @@ This endpoint is part of the [SQL API][ref-sql-api]. -| Parameter | Description | -| --- | --- | -| `query` | The SQL query to run. | +| Parameter | Description | Required | +| --- | --- | --- | +| `query` | The SQL query to run. | ✅ Yes | +| `cache` | See [cache control][ref-cache-control]. `stale-if-slow` by default | ❌ No | Response: a stream of newline-delimited JSON objects. The first object contains the `schema` property with column names and types. The following objects contain @@ -639,4 +641,5 @@ Keep-Alive: timeout=5 [ref-query-wpd]: /product/apis-integrations/queries#query-with-pushdown [ref-sql-api]: /product/apis-integrations/sql-api [ref-orchestration-api]: /product/apis-integrations/orchestration-api -[ref-folders]: /product/data-modeling/reference/view#folders \ No newline at end of file +[ref-folders]: /product/data-modeling/reference/view#folders +[ref-cache-control]: /product/apis-integrations/rest-api#cache-control \ No newline at end of file diff --git a/packages/cubejs-api-gateway/openspec.yml b/packages/cubejs-api-gateway/openspec.yml index 62b62852054b4..681978404dc42 100644 --- a/packages/cubejs-api-gateway/openspec.yml +++ b/packages/cubejs-api-gateway/openspec.yml @@ -484,6 +484,13 @@ components: properties: queryType: type: "string" + cache: + type: "string" + enum: + - stale-if-slow + - stale-while-revalidate + - must-revalidate + - no-cache query: type: "object" $ref: "#/components/schemas/V1LoadRequestQuery" diff --git a/packages/cubejs-api-gateway/package.json b/packages/cubejs-api-gateway/package.json index 0e6ba3ddf66af..35ac4b20c5ace 100644 --- a/packages/cubejs-api-gateway/package.json +++ b/packages/cubejs-api-gateway/package.json @@ -29,6 +29,7 @@ "dependencies": { "@cubejs-backend/native": "1.3.82", "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/query-orchestrator": "1.3.82", "@ungap/structured-clone": "^0.3.4", "assert-never": "^1.4.0", "body-parser": "^1.19.0", diff --git a/packages/cubejs-api-gateway/src/gateway.ts b/packages/cubejs-api-gateway/src/gateway.ts index 8e2cfce793f26..d195676897baf 100644 --- a/packages/cubejs-api-gateway/src/gateway.ts +++ b/packages/cubejs-api-gateway/src/gateway.ts @@ -12,6 +12,7 @@ import { getRealType, parseUtcIntoLocalDate, QueryAlias, + CacheMode, } from '@cubejs-backend/shared'; import { ResultArrayWrapper, @@ -28,6 +29,7 @@ import type { } from 'express'; import { createProxyMiddleware } from 'http-proxy-middleware'; +import { QueryBody } from '@cubejs-backend/query-orchestrator'; import { QueryType, ApiScopes, @@ -50,7 +52,9 @@ import { PreAggJob, PreAggJobStatusItem, PreAggJobStatusResponse, - SqlApiRequest, MetaResponseResultFn, + SqlApiRequest, + MetaResponseResultFn, + RequestQuery, } from './types/request'; import { CheckAuthInternalOptions, @@ -177,7 +181,13 @@ class ApiGateway { public constructor( protected readonly apiSecret: string, + /** + * It actually returns a Promise + */ protected readonly compilerApi: (ctx: RequestContext) => Promise, + /** + * It actually returns a Promise + */ protected readonly adapterApi: (ctx: RequestContext) => Promise, protected readonly logger: any, protected readonly options: ApiGatewayOptions, @@ -311,6 +321,7 @@ class ApiGateway { context: req.context, res: this.resToResultFn(res), queryType: req.query.queryType, + cacheMode: req.query.cache, }); })); @@ -320,7 +331,8 @@ class ApiGateway { query: req.body.query, context: req.context, res: this.resToResultFn(res), - queryType: req.body.queryType + queryType: req.body.queryType, + cacheMode: req.body.cache, }); })); @@ -329,7 +341,8 @@ class ApiGateway { query: req.query.query, context: req.context, res: this.resToResultFn(res), - queryType: req.query.queryType + queryType: req.query.queryType, + cacheMode: req.query.cache, }); })); @@ -425,7 +438,7 @@ class ApiGateway { try { await this.assertApiScope('data', req.context?.securityContext); - await this.sqlServer.execSql(req.body.query, res, req.context?.securityContext); + await this.sqlServer.execSql(req.body.query, res, req.context?.securityContext, req.body.cache); } catch (e: any) { this.handleError({ e, @@ -1200,6 +1213,7 @@ class ApiGateway { context: RequestContext, persistent = false, memberExpressions: boolean = false, + cacheMode?: CacheMode, ): Promise<[QueryType, NormalizedQuery[], NormalizedQuery[]]> { let query = this.parseQueryParam(inputQuery); @@ -1240,7 +1254,7 @@ class ApiGateway { } return { - normalizedQuery: (normalizeQuery(currentQuery, persistent)), + normalizedQuery: (normalizeQuery(currentQuery, persistent, cacheMode)), hasExpressionsInQuery }; }); @@ -1285,13 +1299,13 @@ class ApiGateway { type: 'Query Rewrite completed', queryRewriteId, normalizedQueries, - duration: new Date().getTime() - startTime, + duration: Date.now() - startTime, query }, context); normalizedQueries = normalizedQueries.map(q => remapToQueryAdapterFormat(q)); - if (normalizedQueries.find((currentQuery) => !currentQuery)) { + if (normalizedQueries.some((currentQuery) => !currentQuery)) { throw new Error('queryTransformer returned null query. Please check your queryTransformer implementation'); } @@ -1637,12 +1651,11 @@ class ApiGateway { normalizedQuery: NormalizedQuery, sqlQuery: any, ): Promise { - const queries = [{ + const queries: QueryBody[] = [{ ...sqlQuery, query: sqlQuery.sql[0], values: sqlQuery.sql[1], - continueWait: true, - renewQuery: normalizedQuery.renewQuery, + cacheMode: normalizedQuery.cacheMode, requestId: context.requestId, context, persistent: false, @@ -1665,8 +1678,7 @@ class ApiGateway { ...totalQuery, query: totalQuery.sql[0], values: totalQuery.sql[1], - continueWait: true, - renewQuery: normalizedTotal.renewQuery, + cacheMode: normalizedTotal.cacheMode, requestId: context.requestId, context }); @@ -1782,12 +1794,11 @@ class ApiGateway { this.log({ type: 'Load Request', query, streaming: true }, context); const [, normalizedQueries] = await this.getNormalizedQueries(query, context, true); const sqlQuery = (await this.getSqlQueriesInternal(context, normalizedQueries))[0]; - const q = { + const q: QueryBody = { ...sqlQuery, query: sqlQuery.sql[0], values: sqlQuery.sql[1], - continueWait: true, - renewQuery: false, + cacheMode: 'stale-if-slow', requestId: context.requestId, context, persistent: true, @@ -1826,6 +1837,7 @@ class ApiGateway { context, res, apiType = 'rest', + cacheMode, ...props } = request; const requestStarted = new Date(); @@ -1847,7 +1859,7 @@ class ApiGateway { }, context); const [queryType, normalizedQueries] = - await this.getNormalizedQueries(query, context); + await this.getNormalizedQueries(query, context, false, false, cacheMode); if ( queryType !== QueryTypeEnum.REGULAR_QUERY && @@ -1941,6 +1953,7 @@ class ApiGateway { const { context, res, + cacheMode, } = request; const requestStarted = new Date(); @@ -1955,7 +1968,7 @@ class ApiGateway { } const [queryType, normalizedQueries] = - await this.getNormalizedQueries(query, context, request.streaming, request.memberExpressions); + await this.getNormalizedQueries(query, context, request.streaming, request.memberExpressions, cacheMode); const compilerApi = await this.getCompilerApi(context); let metaConfigResult = await compilerApi.metaConfig(request.context, { @@ -1970,17 +1983,16 @@ class ApiGateway { normalizedQueries.map(q => ({ ...q, disableExternalPreAggregations: request.sqlQuery })) ); - let results; + let results: any[]; let slowQuery = false; const streamResponse = async (sqlQuery) => { - const q = { + const q: QueryBody = { ...sqlQuery, query: sqlQuery.query || sqlQuery.sql[0], values: sqlQuery.values || sqlQuery.sql[1], - continueWait: true, - renewQuery: false, + cacheMode: 'stale-if-slow', requestId: context.requestId, context, persistent: true, @@ -1995,11 +2007,10 @@ class ApiGateway { }; if (request.sqlQuery) { - const finalQuery = { + const finalQuery: QueryBody = { query: request.sqlQuery[0], values: request.sqlQuery[1], - continueWait: true, - renewQuery: normalizedQueries[0].renewQuery, + cacheMode: request.cacheMode, requestId: context.requestId, context, ...sqlQueries[0], @@ -2133,7 +2144,7 @@ class ApiGateway { }; } - protected parseQueryParam(query): Query | Query[] { + protected parseQueryParam(query: RequestQuery | 'undefined'): Query | Query[] { if (!query || query === 'undefined') { throw new UserError('Query param is required'); } diff --git a/packages/cubejs-api-gateway/src/graphql.ts b/packages/cubejs-api-gateway/src/graphql.ts index b00a9d4738b4e..46c23d3e0708b 100644 --- a/packages/cubejs-api-gateway/src/graphql.ts +++ b/packages/cubejs-api-gateway/src/graphql.ts @@ -363,7 +363,7 @@ function parseDates(result: any) { } export function getJsonQuery(metaConfig: any, args: Record, infos: GraphQLResolveInfo) { - const { where, limit, offset, timezone, orderBy, renewQuery, ungrouped } = args; + const { where, limit, offset, timezone, orderBy, renewQuery, ungrouped, cache } = args; const measures: string[] = []; const dimensions: string[] = []; @@ -461,6 +461,7 @@ export function getJsonQuery(metaConfig: any, args: Record, infos: ...(timezone && { timezone }), ...(filters.length && { filters }), ...(renewQuery && { renewQuery }), + ...(cache && { cache }), ...(ungrouped && { ungrouped }), }; } @@ -639,6 +640,7 @@ export function makeSchema(metaConfig: any): GraphQLSchema { offset: intArg(), timezone: stringArg(), renewQuery: booleanArg(), + cache: stringArg(), ungrouped: booleanArg(), orderBy: arg({ type: 'RootOrderByInput' @@ -651,6 +653,7 @@ export function makeSchema(metaConfig: any): GraphQLSchema { apiGateway.load({ query, queryType: QueryType.REGULAR_QUERY, + ...(query.cache ? { cache: query.cache } : {}), context: req.context, res: async (message) => { if (message.error) { diff --git a/packages/cubejs-api-gateway/src/query.js b/packages/cubejs-api-gateway/src/query.js index b9320d128168f..e260d0855d90c 100644 --- a/packages/cubejs-api-gateway/src/query.js +++ b/packages/cubejs-api-gateway/src/query.js @@ -187,7 +187,10 @@ const querySchema = Joi.object().keys({ limit: Joi.number().integer().strict().min(0), offset: Joi.number().integer().strict().min(0), total: Joi.boolean(), + // @deprecated renewQuery: Joi.boolean(), + cacheMode: Joi.valid('stale-if-slow', 'stale-while-revalidate', 'must-revalidate', 'no-cache'), + cache: Joi.valid('stale-if-slow', 'stale-while-revalidate', 'must-revalidate', 'no-cache'), ungrouped: Joi.boolean(), responseFormat: Joi.valid('default', 'compact'), subqueryJoins: Joi.array().items(subqueryJoin), @@ -288,14 +291,43 @@ function parseInputMemberExpression(expression) { return expression; } +/** + * + * @param {Query} query + * @param {CacheMode} cacheMode + * @return {Query} + */ +function normalizeQueryCacheMode(query, cacheMode) { + if (cacheMode !== undefined) { + query.cacheMode = cacheMode; + } else if (!query.cache && query?.renewQuery !== undefined) { + // TODO: Drop this when renewQuery will be removed + query.cacheMode = query.renewQuery === true + ? 'must-revalidate' + : 'stale-if-slow'; + } else if (!query.cache) { + query.cacheMode = 'stale-if-slow'; + } else { + query.cacheMode = query.cache; + } + + // TODO: Drop this when renewQuery will be removed + query.renewQuery = undefined; + query.cache = undefined; + + return query; +} + /** * Normalize incoming network query. * @param {Query} query * @param {boolean} persistent + * @param {CacheMode} [cacheMode] * @throws {UserError} - * @returns {NormalizedQuery} + * @returns {import('./types/query').NormalizedQuery} */ -const normalizeQuery = (query, persistent) => { +const normalizeQuery = (query, persistent, cacheMode) => { + query = normalizeQueryCacheMode(query); const { error } = querySchema.validate(query); if (error) { throw new UserError(`Invalid query format: ${error.message || error.toString()}`); diff --git a/packages/cubejs-api-gateway/src/sql-server.ts b/packages/cubejs-api-gateway/src/sql-server.ts index cd3a6eeff0d05..8384547bf9149 100644 --- a/packages/cubejs-api-gateway/src/sql-server.ts +++ b/packages/cubejs-api-gateway/src/sql-server.ts @@ -10,7 +10,7 @@ import { Sql4SqlResponse, } from '@cubejs-backend/native'; import type { ShutdownMode } from '@cubejs-backend/native'; -import { displayCLIWarning, getEnv } from '@cubejs-backend/shared'; +import { displayCLIWarning, getEnv, CacheMode } from '@cubejs-backend/shared'; import * as crypto from 'crypto'; import type { ApiGateway } from './gateway'; @@ -65,8 +65,8 @@ export class SQLServer { throw new Error('Native api gateway is not enabled'); } - public async execSql(sqlQuery: string, stream: any, securityContext?: any) { - await execSql(this.sqlInterfaceInstance!, sqlQuery, stream, securityContext); + public async execSql(sqlQuery: string, stream: any, securityContext?: any, cacheMode?: CacheMode) { + await execSql(this.sqlInterfaceInstance!, sqlQuery, stream, securityContext, cacheMode); } public async sql4sql(sqlQuery: string, disablePostProcessing: boolean, securityContext?: unknown): Promise { @@ -207,7 +207,7 @@ export class SQLServer { } }); }, - sqlApiLoad: async ({ request, session, query, queryKey, sqlQuery, streaming }) => { + sqlApiLoad: async ({ request, session, query, queryKey, sqlQuery, streaming, cacheMode }) => { const context = await contextByRequest(request, session); // eslint-disable-next-line no-async-promise-executor @@ -218,6 +218,7 @@ export class SQLServer { query, sqlQuery, streaming, + cacheMode, context, memberExpressions: true, res: (response) => { diff --git a/packages/cubejs-api-gateway/src/types/query.ts b/packages/cubejs-api-gateway/src/types/query.ts index 7c470a6aaa27c..86c06c59ffce3 100644 --- a/packages/cubejs-api-gateway/src/types/query.ts +++ b/packages/cubejs-api-gateway/src/types/query.ts @@ -5,6 +5,7 @@ * Network query data types definition. */ +import { CacheMode } from '@cubejs-backend/shared'; import { Member, TimeMember, @@ -139,7 +140,10 @@ interface Query { totalQuery?: boolean; order?: any; timezone?: string; + // @deprecated renewQuery?: boolean; + cacheMode?: CacheMode; // used after query normalization + cache?: CacheMode; // Used in public interface ungrouped?: boolean; responseFormat?: ResultType; diff --git a/packages/cubejs-api-gateway/src/types/request.ts b/packages/cubejs-api-gateway/src/types/request.ts index 9ff0ba90121b6..024352615bba7 100644 --- a/packages/cubejs-api-gateway/src/types/request.ts +++ b/packages/cubejs-api-gateway/src/types/request.ts @@ -7,6 +7,7 @@ import type { Request as ExpressRequest } from 'express'; import type { DataResult } from '@cubejs-backend/native'; +import { CacheMode } from '@cubejs-backend/shared'; import { RequestType, ApiType, ResultType } from './strings'; import { Query } from './query'; @@ -119,11 +120,16 @@ type BaseRequest = { res: ResponseResultFn }; +type RequestQuery = Record | Record[] & { + renewQuery?: boolean; + cacheMode?: CacheMode; +}; + /** * Data query HTTP request parameters map data type. */ type QueryRequest = BaseRequest & { - query: Record | Record[]; + query: RequestQuery; queryType?: RequestType; apiType?: ApiType; resType?: ResultType @@ -133,6 +139,7 @@ type QueryRequest = BaseRequest & { memberExpressions?: boolean; disableExternalPreAggregations?: boolean; disableLimitEnforcing?: boolean; + cacheMode?: CacheMode; }; type SqlApiRequest = BaseRequest & { @@ -142,6 +149,7 @@ type SqlApiRequest = BaseRequest & { queryKey: any; streaming?: boolean; memberExpressions?: boolean; + cacheMode?: CacheMode; }; /** @@ -218,6 +226,7 @@ export { ResponseResultFn, MetaResponseResultFn, BaseRequest, + RequestQuery, QueryRequest, PreAggsJobsRequest, PreAggsSelector, diff --git a/packages/cubejs-api-gateway/test/index.test.ts b/packages/cubejs-api-gateway/test/index.test.ts index 2a8d5f03bab0f..78fa66e2d3e43 100644 --- a/packages/cubejs-api-gateway/test/index.test.ts +++ b/packages/cubejs-api-gateway/test/index.test.ts @@ -377,6 +377,7 @@ describe('API Gateway', () => { queryType: 'regularQuery', normalizedQueries: [ { + cacheMode: 'stale-if-slow', measures: ['Foo.bar'], timezone: 'UTC', filters: [], @@ -389,6 +390,7 @@ describe('API Gateway', () => { ], queryOrder: [{ id: 'desc' }], pivotQuery: { + cacheMode: 'stale-if-slow', measures: ['Foo.bar'], timezone: 'UTC', filters: [], @@ -436,6 +438,7 @@ describe('API Gateway', () => { (res) => { expect(res.body.normalizedQueries).toStrictEqual([ { + cacheMode: 'stale-if-slow', measures: ['Foo.bar'], timezone: 'UTC', filters: [{ @@ -511,6 +514,7 @@ describe('API Gateway', () => { queryType: 'regularQuery', normalizedQueries: [ { + cacheMode: 'stale-if-slow', measures: ['Foo.bar'], timezone: 'UTC', filters: [], @@ -523,6 +527,7 @@ describe('API Gateway', () => { ], queryOrder: [{ id: 'desc' }], pivotQuery: { + cacheMode: 'stale-if-slow', measures: ['Foo.bar'], timezone: 'UTC', filters: [], @@ -556,6 +561,7 @@ describe('API Gateway', () => { queryType: 'regularQuery', normalizedQueries: [ { + cacheMode: 'stale-if-slow', measures: ['Foo.bar'], order: [{ id: 'Foo.bar', desc: true }], timezone: 'UTC', @@ -569,6 +575,7 @@ describe('API Gateway', () => { ], queryOrder: [{ id: 'desc' }], pivotQuery: { + cacheMode: 'stale-if-slow', measures: ['Foo.bar'], order: [{ id: 'Foo.bar', desc: true }], timezone: 'UTC', diff --git a/packages/cubejs-backend-native/js/index.ts b/packages/cubejs-backend-native/js/index.ts index a7343a76cf8b2..36e3cd8a20296 100644 --- a/packages/cubejs-backend-native/js/index.ts +++ b/packages/cubejs-backend-native/js/index.ts @@ -3,6 +3,7 @@ import fs from 'fs'; import path from 'path'; import { Writable } from 'stream'; import type { Request as ExpressRequest } from 'express'; +import { CacheMode } from '@cubejs-backend/shared'; import { ResultWrapper } from './ResultWrapper'; export * from './ResultWrapper'; @@ -77,12 +78,13 @@ export interface SqlPayload { } export interface SqlApiLoadPayload { - request: Request, - session: SessionContext, - query: any, - queryKey: any, - sqlQuery: any, - streaming: boolean, + request: Request; + session: SessionContext; + query: any; + queryKey: any; + sqlQuery: any; + streaming: boolean; + cacheMode: CacheMode; } export interface LogLoadEventPayload { @@ -435,10 +437,10 @@ export const shutdownInterface = async (instance: SqlInterfaceInstance, shutdown await native.shutdownInterface(instance, shutdownMode); }; -export const execSql = async (instance: SqlInterfaceInstance, sqlQuery: string, stream: any, securityContext?: any): Promise => { +export const execSql = async (instance: SqlInterfaceInstance, sqlQuery: string, stream: any, securityContext?: any, cacheMode: CacheMode = 'stale-if-slow'): Promise => { const native = loadNative(); - await native.execSql(instance, sqlQuery, stream, securityContext ? JSON.stringify(securityContext) : null); + await native.execSql(instance, sqlQuery, stream, securityContext ? JSON.stringify(securityContext) : null, cacheMode); }; // TODO parse result from native code diff --git a/packages/cubejs-backend-native/src/node_export.rs b/packages/cubejs-backend-native/src/node_export.rs index 7f1c38861b8ff..42470dc7f9a4c 100644 --- a/packages/cubejs-backend-native/src/node_export.rs +++ b/packages/cubejs-backend-native/src/node_export.rs @@ -223,6 +223,7 @@ async fn handle_sql_query( channel: Arc, stream_methods: WritableStreamMethods, sql_query: &str, + cache_mode: &str, ) -> Result<(), CubeError> { let span_id = Some(Arc::new(SpanId::new( Uuid::new_v4().to_string(), @@ -252,6 +253,17 @@ async fn handle_sql_query( .await?; } + let cache_enum = cache_mode.parse().map_err(CubeError::user)?; + + { + let mut cm = session + .state + .cache_mode + .write() + .expect("failed to unlock session cache_mode for change"); + *cm = Some(cache_enum); + } + let session_clone = Arc::clone(&session); let span_id_clone = span_id.clone(); @@ -424,6 +436,8 @@ fn exec_sql(mut cx: FunctionContext) -> JsResult { Err(_) => None, }; + let cache_mode = cx.argument::(4)?.value(&mut cx); + let js_stream_on_fn = Arc::new( node_stream .get::(&mut cx, "on")? @@ -471,6 +485,7 @@ fn exec_sql(mut cx: FunctionContext) -> JsResult { channel.clone(), stream_methods, &sql_query, + &cache_mode, ) .await; diff --git a/packages/cubejs-backend-native/src/transport.rs b/packages/cubejs-backend-native/src/transport.rs index 0331f4e78add3..eaf048d126763 100644 --- a/packages/cubejs-backend-native/src/transport.rs +++ b/packages/cubejs-backend-native/src/transport.rs @@ -13,7 +13,7 @@ use crate::{ }; use async_trait::async_trait; use cubesql::compile::engine::df::scan::{ - convert_transport_response, transform_response, MemberField, RecordBatch, SchemaRef, + convert_transport_response, transform_response, CacheMode, MemberField, RecordBatch, SchemaRef, }; use cubesql::compile::engine::df::wrapper::SqlQuery; use cubesql::transport::{ @@ -91,6 +91,8 @@ struct LoadRequest { streaming: bool, #[serde(rename = "queryKey", skip_serializing_if = "Option::is_none")] query_key: Option, + #[serde(rename = "cacheMode", skip_serializing_if = "Option::is_none")] + cache_mode: Option, } #[derive(Debug, Serialize)] @@ -287,6 +289,7 @@ impl TransportService for NodeBridgeTransport { member_to_alias, expression_params, streaming: false, + cache_mode: None, })?; let response: serde_json::Value = call_js_with_channel_as_callback( @@ -338,6 +341,7 @@ impl TransportService for NodeBridgeTransport { meta: LoadRequestMeta, schema: SchemaRef, member_fields: Vec, + cache_mode: Option, ) -> Result, CubeError> { trace!("[transport] Request ->"); @@ -371,6 +375,7 @@ impl TransportService for NodeBridgeTransport { member_to_alias: None, expression_params: None, streaming: false, + cache_mode: cache_mode.clone(), })?; let result = call_raw_js_with_channel_as_callback( @@ -527,6 +532,7 @@ impl TransportService for NodeBridgeTransport { member_to_alias: None, expression_params: None, streaming: true, + cache_mode: None, })?; let res = call_js_with_stream_as_callback( diff --git a/packages/cubejs-backend-shared/src/index.ts b/packages/cubejs-backend-shared/src/index.ts index ac7ff477ac440..29f89efa7d72e 100644 --- a/packages/cubejs-backend-shared/src/index.ts +++ b/packages/cubejs-backend-shared/src/index.ts @@ -13,6 +13,7 @@ export * from './convert'; export * from './helpers'; export * from './machine-id'; export * from './type-helpers'; +export * from './shared-types'; export * from './http-utils'; export * from './cli'; export * from './proxy'; diff --git a/packages/cubejs-backend-shared/src/shared-types.ts b/packages/cubejs-backend-shared/src/shared-types.ts new file mode 100644 index 0000000000000..52eb4fc09db74 --- /dev/null +++ b/packages/cubejs-backend-shared/src/shared-types.ts @@ -0,0 +1,22 @@ +/* +stale-if-slow (default) — equivalent to previously used renewQuery: false + If refresh keys are up-to-date, returns the value from cache + If refresh keys are expired, tries to return the value from the database + Returns fresh value from the database if the query executed in the database until the first “Continue wait” interval is reached + Returns stale value from cache otherwise + +stale-while-revalidate — AKA “backgroundRefresh” + If refresh keys are up-to-date, returns the value from cache + If refresh keys are expired, returns stale data from cache + Updates the cache in background + +must-revalidate — equivalent to previously used renewQuery: true + If refresh keys are up-to-date, returns the value from cache + If refresh keys are expired, tries to return the value from the database + Returns fresh value from the database even if it takes minutes and many “Continue wait” intervals + +no-cache — AKA “forceRefresh” + Skips refresh key checks + Returns fresh data from the database, even if it takes minutes and many “Continue wait” intervals +*/ +export type CacheMode = 'stale-if-slow' | 'stale-while-revalidate' | 'must-revalidate' | 'no-cache'; diff --git a/packages/cubejs-client-core/src/types.ts b/packages/cubejs-client-core/src/types.ts index 58f5adba4c24a..400de81044e93 100644 --- a/packages/cubejs-client-core/src/types.ts +++ b/packages/cubejs-client-core/src/types.ts @@ -113,6 +113,7 @@ export interface Query { offset?: number; order?: TQueryOrderObject | TQueryOrderArray; timezone?: string; + // @deprecated renewQuery?: boolean; ungrouped?: boolean; responseFormat?: 'compact' | 'default'; diff --git a/packages/cubejs-client-dx/index.d.ts b/packages/cubejs-client-dx/index.d.ts index 9e61ed1fe0de6..c37dcb86385c0 100644 --- a/packages/cubejs-client-dx/index.d.ts +++ b/packages/cubejs-client-dx/index.d.ts @@ -19,6 +19,7 @@ declare module "@cubejs-client/core" { offset?: number; order?: IntrospectedTQueryOrderObject | IntrospectedTQueryOrderArray; timezone?: string; + // @deprecated renewQuery?: boolean; ungrouped?: boolean; } diff --git a/packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts b/packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts index c8a6722cc9049..14c1150bb2c69 100644 --- a/packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts +++ b/packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts @@ -498,7 +498,7 @@ export class PreAggregations { maxPartitions: this.options.maxPartitions, maxSourceRowLimit: this.options.maxSourceRowLimit, isJob: queryBody.isJob, - waitForRenew: queryBody.renewQuery, + waitForRenew: queryBody.cacheMode !== undefined ? queryBody.cacheMode === 'must-revalidate' : queryBody.renewQuery, // TODO workaround to avoid continuous waiting on building pre-aggregation dependencies forceBuild: i === preAggregations.length - 1 ? queryBody.forceBuildPreAggregations : false, requestId: queryBody.requestId, @@ -603,7 +603,7 @@ export class PreAggregations { { maxPartitions: this.options.maxPartitions, maxSourceRowLimit: this.options.maxSourceRowLimit, - waitForRenew: queryBody.renewQuery, + waitForRenew: queryBody.cacheMode !== undefined ? queryBody.cacheMode === 'must-revalidate' : queryBody.renewQuery, requestId: queryBody.requestId, externalRefresh: this.externalRefresh, compilerCacheFn: queryBody.compilerCacheFn, diff --git a/packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts b/packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts index a492e974aa510..0887aac625065 100644 --- a/packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts +++ b/packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts @@ -2,7 +2,13 @@ import crypto from 'crypto'; import csvWriter from 'csv-write-stream'; import { LRUCache } from 'lru-cache'; import { pipeline } from 'stream'; -import { AsyncDebounce, getEnv, MaybeCancelablePromise, streamToArray } from '@cubejs-backend/shared'; +import { + AsyncDebounce, + getEnv, + MaybeCancelablePromise, + streamToArray, + CacheMode, +} from '@cubejs-backend/shared'; import { CubeStoreCacheDriver, CubeStoreDriver } from '@cubejs-backend/cubestore-driver'; import { BaseDriver, @@ -20,6 +26,23 @@ import { LoadPreAggregationResult, PreAggregationDescription } from './PreAggreg import { getCacheHash } from './utils'; import { CacheAndQueryDriverType, MetadataOperationType } from './QueryOrchestrator'; +export type CacheQueryResultOptions = { + renewalThreshold?: number, + renewalKey?: any, + priority?: number, + external?: boolean, + requestId?: string, + dataSource: string, + waitForRenew?: boolean, + forceNoCache?: boolean, + useInMemory?: boolean, + useCsvQuery?: boolean, + lambdaTypes?: TableStructure, + persistent?: boolean, + primaryQuery?: boolean, + renewCycle?: boolean, +}; + type QueryOptions = { external?: boolean; renewalThreshold?: number; @@ -46,7 +69,9 @@ export type Query = { preAggregations?: PreAggregationDescription[]; groupedPartitionPreAggregations?: PreAggregationDescription[][]; preAggregationsLoadCacheByDataSource?: any; + // @deprecated renewQuery?: boolean; + cacheMode?: CacheMode; compilerCacheFn?: (subKey: string[], cacheFn: () => T) => T; }; @@ -55,8 +80,11 @@ export type QueryBody = { persistent?: boolean; query?: string; values?: string[]; - continueWait?: boolean; + loadRefreshKeysOnly?: boolean; + scheduledRefresh?: boolean; + // @deprecated renewQuery?: boolean; + cacheMode?: CacheMode; requestId?: string; external?: boolean; isJob?: boolean; @@ -202,7 +230,7 @@ export class QueryCache { queuePriority = queryBody.queuePriority; } - const forceNoCache = queryBody.forceNoCache || false; + const forceNoCache = queryBody.forceNoCache || (queryBody.cacheMode === 'no-cache') || false; const { values } = queryBody; @@ -252,7 +280,8 @@ export class QueryCache { } } - if (queryBody.renewQuery) { + // renewQuery has been deprecated, but keeping it for now + if (queryBody.cacheMode === 'must-revalidate' || queryBody.renewQuery) { this.logger('Requested renew', { cacheKey, requestId: queryBody.requestId }); return this.renewQuery( query, @@ -270,7 +299,7 @@ export class QueryCache { ); } - if (!this.options.backgroundRenew) { + if (!this.options.backgroundRenew && queryBody.cacheMode !== 'stale-while-revalidate') { const resultPromise = this.renewQuery( query, values, @@ -843,22 +872,7 @@ export class QueryCache { values: string[], cacheKey: CacheKey, expiration: number, - options: { - renewalThreshold?: number, - renewalKey?: any, - priority?: number, - external?: boolean, - requestId?: string, - dataSource: string, - waitForRenew?: boolean, - forceNoCache?: boolean, - useInMemory?: boolean, - useCsvQuery?: boolean, - lambdaTypes?: TableStructure, - persistent?: boolean, - primaryQuery?: boolean, - renewCycle?: boolean, - } + options: CacheQueryResultOptions, ) { const spanId = crypto.randomBytes(16).toString('hex'); options = options || { dataSource: 'default' }; diff --git a/packages/cubejs-query-orchestrator/src/orchestrator/QueryOrchestrator.ts b/packages/cubejs-query-orchestrator/src/orchestrator/QueryOrchestrator.ts index fe53c59a55888..f682955ae2331 100644 --- a/packages/cubejs-query-orchestrator/src/orchestrator/QueryOrchestrator.ts +++ b/packages/cubejs-query-orchestrator/src/orchestrator/QueryOrchestrator.ts @@ -1,6 +1,6 @@ import * as stream from 'stream'; import R from 'ramda'; -import { getEnv } from '@cubejs-backend/shared'; +import { CacheMode, getEnv } from '@cubejs-backend/shared'; import { CubeStoreDriver } from '@cubejs-backend/cubestore-driver'; import { QuerySchemasResult, @@ -408,7 +408,6 @@ export class QueryOrchestrator { const data = await this.fetchQuery({ dataSource: preAggregation.dataSource, - continueWait: true, query, external, preAggregations: [ diff --git a/packages/cubejs-server-core/src/core/CompilerApi.js b/packages/cubejs-server-core/src/core/CompilerApi.js index b00a9b92927ab..dfe6027c5eecb 100644 --- a/packages/cubejs-server-core/src/core/CompilerApi.js +++ b/packages/cubejs-server-core/src/core/CompilerApi.js @@ -504,7 +504,7 @@ export class CompilerApi { /** * - * @param {unknown} filter + * @param {unknown|undefined} filter * @returns {Promise>} */ async preAggregations(filter) { diff --git a/packages/cubejs-server-core/src/core/OrchestratorApi.ts b/packages/cubejs-server-core/src/core/OrchestratorApi.ts index 77caf0d556c3f..e715e55a9be69 100644 --- a/packages/cubejs-server-core/src/core/OrchestratorApi.ts +++ b/packages/cubejs-server-core/src/core/OrchestratorApi.ts @@ -81,7 +81,7 @@ export class OrchestratorApi { requestId: query.requestId }); - let fetchQueryPromise = query.loadRefreshKeysOnly + let fetchQueryPromise: Promise = query.loadRefreshKeysOnly ? this.orchestrator.loadRefreshKeys(query) : this.orchestrator.fetchQuery(query); @@ -120,7 +120,7 @@ export class OrchestratorApi { return data; } catch (err) { - if ((err instanceof pt.TimeoutError || err instanceof ContinueWaitError)) { + if (err instanceof pt.TimeoutError || err instanceof ContinueWaitError) { this.logger('Continue wait', { duration: ((new Date()).getTime() - startQueryTime), query: queryForLog, @@ -128,14 +128,18 @@ export class OrchestratorApi { requestId: query.requestId }); + if (query.scheduledRefresh) { + throw { + error: 'Continue wait', + stage: null + }; + } + const fromCache = await this .orchestrator .resultFromCacheIfExists(query); - if ( - !query.renewQuery && - fromCache && - !query.scheduledRefresh - ) { + + if ((query.cacheMode === 'stale-if-slow' || query.cacheMode === 'stale-while-revalidate') && fromCache) { this.logger('Slow Query Warning', { query: queryForLog, requestId: query.requestId, @@ -152,9 +156,7 @@ export class OrchestratorApi { throw { error: 'Continue wait', - stage: !query.scheduledRefresh - ? await this.orchestrator.queryStage(query) - : null + stage: await this.orchestrator.queryStage(query) }; } @@ -260,7 +262,7 @@ export class OrchestratorApi { this.seenDataSources[dataSource] = true; } - public getPreAggregationVersionEntries(context: RequestContext, preAggregations, preAggregationsSchema) { + public getPreAggregationVersionEntries(context: RequestContext, preAggregations, preAggregationsSchema): Promise { return this.orchestrator.getPreAggregationVersionEntries( preAggregations, preAggregationsSchema, diff --git a/packages/cubejs-server-core/src/core/RefreshScheduler.ts b/packages/cubejs-server-core/src/core/RefreshScheduler.ts index d9d947ec5b1b5..50b0d9b8dc924 100644 --- a/packages/cubejs-server-core/src/core/RefreshScheduler.ts +++ b/packages/cubejs-server-core/src/core/RefreshScheduler.ts @@ -368,8 +368,7 @@ export class RefreshScheduler { ...sqlQuery, sql: null, preAggregations: [], - continueWait: true, - renewQuery: true, + cacheMode: 'must-revalidate', requestId: context.requestId, scheduledRefresh: true, loadRefreshKeysOnly: true, @@ -579,8 +578,7 @@ export class RefreshScheduler { ...partition, priority: preAggregationsWarmup ? 1 : queryCursor - queries.length })), - continueWait: true, - renewQuery: true, + cacheMode: 'must-revalidate', requestId: context.requestId, timezone: timezones[timezoneCursor], scheduledRefresh: true, @@ -644,8 +642,7 @@ export class RefreshScheduler { Promise.all(partitions.map(async (partition) => { await orchestratorApi.executeQuery({ preAggregations: dependencies.concat([partition]), - continueWait: true, - renewQuery: true, + cacheMode: 'must-revalidate', forceBuildPreAggregations: queryingOptions.forceBuildPreAggregations ?? true, orphanedTimeout: 60 * 60, requestId: context.requestId, @@ -738,8 +735,7 @@ export class RefreshScheduler { async (partition): Promise => { const job = await orchestratorApi.executeQuery({ preAggregations: dependencies.concat([partition]), - continueWait: true, - renewQuery: false, + cacheMode: 'stale-if-slow', forceBuildPreAggregations: true, orphanedTimeout: 60 * 60, requestId: context.requestId, diff --git a/rust/cubesql/cubeclient/.openapi-generator/VERSION b/rust/cubesql/cubeclient/.openapi-generator/VERSION index e465da43155f4..368fd8fd8d784 100644 --- a/rust/cubesql/cubeclient/.openapi-generator/VERSION +++ b/rust/cubesql/cubeclient/.openapi-generator/VERSION @@ -1 +1 @@ -7.14.0 +7.15.0 diff --git a/rust/cubesql/cubeclient/src/models/mod.rs b/rust/cubesql/cubeclient/src/models/mod.rs index 96884d6be2587..5ee41ef768ef0 100644 --- a/rust/cubesql/cubeclient/src/models/mod.rs +++ b/rust/cubesql/cubeclient/src/models/mod.rs @@ -29,6 +29,7 @@ pub use self::v1_cube_meta_type::V1CubeMetaType; pub mod v1_error; pub use self::v1_error::V1Error; pub mod v1_load_request; +pub use self::v1_load_request::Cache; pub use self::v1_load_request::V1LoadRequest; pub mod v1_load_request_query; pub use self::v1_load_request_query::V1LoadRequestQuery; diff --git a/rust/cubesql/cubeclient/src/models/v1_load_request.rs b/rust/cubesql/cubeclient/src/models/v1_load_request.rs index c9d0c5e28fedb..8363498c4fa63 100644 --- a/rust/cubesql/cubeclient/src/models/v1_load_request.rs +++ b/rust/cubesql/cubeclient/src/models/v1_load_request.rs @@ -15,6 +15,8 @@ use serde::{Deserialize, Serialize}; pub struct V1LoadRequest { #[serde(rename = "queryType", skip_serializing_if = "Option::is_none")] pub query_type: Option, + #[serde(rename = "cache", skip_serializing_if = "Option::is_none")] + pub cache: Option, #[serde(rename = "query", skip_serializing_if = "Option::is_none")] pub query: Option, } @@ -23,7 +25,26 @@ impl V1LoadRequest { pub fn new() -> V1LoadRequest { V1LoadRequest { query_type: None, + cache: None, query: None, } } } + +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Cache { + #[serde(rename = "stale-if-slow")] + StaleIfSlow, + #[serde(rename = "stale-while-revalidate")] + StaleWhileRevalidate, + #[serde(rename = "must-revalidate")] + MustRevalidate, + #[serde(rename = "no-cache")] + NoCache, +} + +impl Default for Cache { + fn default() -> Cache { + Self::StaleIfSlow + } +} diff --git a/rust/cubesql/cubesql/src/compile/engine/df/scan.rs b/rust/cubesql/cubesql/src/compile/engine/df/scan.rs index cf6e6af5f28e4..250b116afbba2 100644 --- a/rust/cubesql/cubesql/src/compile/engine/df/scan.rs +++ b/rust/cubesql/cubesql/src/compile/engine/df/scan.rs @@ -1,4 +1,16 @@ +use crate::compile::date_parser::parse_date_str; +use crate::{ + compile::{ + engine::df::wrapper::{CubeScanWrappedSqlNode, CubeScanWrapperNode, SqlQuery}, + test::find_cube_scans_deep_search, + }, + config::ConfigObj, + sql::AuthContextRef, + transport::{CubeStreamReceiver, LoadRequestMeta, SpanId, TransportService}, + CubeError, +}; use async_trait::async_trait; +use chrono::{Datelike, NaiveDate}; use cubeclient::models::{V1LoadRequestQuery, V1LoadResponse}; pub use datafusion::{ arrow::{ @@ -18,28 +30,6 @@ pub use datafusion::{ Partitioning, PhysicalPlanner, RecordBatchStream, SendableRecordBatchStream, Statistics, }, }; -use futures::Stream; -use log::warn; -use std::{ - any::Any, - borrow::Cow, - fmt, - sync::Arc, - task::{Context, Poll}, -}; - -use crate::compile::date_parser::parse_date_str; -use crate::{ - compile::{ - engine::df::wrapper::{CubeScanWrappedSqlNode, CubeScanWrapperNode, SqlQuery}, - test::find_cube_scans_deep_search, - }, - config::ConfigObj, - sql::AuthContextRef, - transport::{CubeStreamReceiver, LoadRequestMeta, SpanId, TransportService}, - CubeError, -}; -use chrono::{Datelike, NaiveDate}; use datafusion::{ arrow::{ array::{ @@ -51,7 +41,18 @@ use datafusion::{ execution::context::TaskContext, scalar::ScalarValue, }; +use futures::Stream; +use log::warn; +use serde::Serialize; use serde_json::Value; +use std::str::FromStr; +use std::{ + any::Any, + borrow::Cow, + fmt, + sync::Arc, + task::{Context, Poll}, +}; #[derive(Debug, Clone, Eq, PartialEq)] pub struct RegularMember { @@ -79,10 +80,37 @@ impl MemberField { } } +#[derive(Debug, Clone, Serialize)] +pub enum CacheMode { + #[serde(rename = "stale-if-slow")] + StaleIfSlow, + #[serde(rename = "stale-while-revalidate")] + StaleWhileRevalidate, + #[serde(rename = "must-revalidate")] + MustRevalidate, + #[serde(rename = "no-cache")] + NoCache, +} + +impl FromStr for CacheMode { + type Err = String; + + fn from_str(s: &str) -> std::result::Result { + match s { + "stale-if-slow" => Ok(Self::StaleIfSlow), + "stale-while-revalidate" => Ok(Self::StaleWhileRevalidate), + "must-revalidate" => Ok(Self::MustRevalidate), + "no-cache" => Ok(Self::NoCache), + other => Err(format!("Unknown cache mode: {}", other)), + } + } +} + #[derive(Debug, Clone)] pub struct CubeScanOptions { pub change_user: Option, pub max_records: Option, + pub cache_mode: Option, } #[derive(Debug, Clone)] @@ -682,6 +710,7 @@ async fn load_data( meta, schema, member_fields, + options.cache_mode, ) .await .map_err(|err| ArrowError::ComputeError(err.to_string()))?; @@ -1192,6 +1221,7 @@ mod tests { _meta_fields: LoadRequestMeta, schema: SchemaRef, member_fields: Vec, + _cache_mode: Option, ) -> Result, CubeError> { let response = r#" { @@ -1317,6 +1347,7 @@ mod tests { options: CubeScanOptions { change_user: None, max_records: None, + cache_mode: None, }, transport: get_test_transport(), meta: get_test_load_meta(DatabaseProtocol::PostgreSQL), diff --git a/rust/cubesql/cubesql/src/compile/rewrite/converter.rs b/rust/cubesql/cubesql/src/compile/rewrite/converter.rs index 3717d2e99d45d..68b715d99f4ad 100644 --- a/rust/cubesql/cubesql/src/compile/rewrite/converter.rs +++ b/rust/cubesql/cubesql/src/compile/rewrite/converter.rs @@ -2055,6 +2055,13 @@ impl LanguageToLogicalPlanConverter { let member_fields = fields.iter().map(|(_, m)| m.clone()).collect(); + let cache_mode = &*self + .cube_context + .session_state + .cache_mode + .read() + .expect("failed to read lock for session cache_mode"); + let node = Arc::new(CubeScanNode::new( Arc::new(DFSchema::new_with_metadata( fields.into_iter().map(|(f, _)| f).collect(), @@ -2066,6 +2073,7 @@ impl LanguageToLogicalPlanConverter { CubeScanOptions { change_user, max_records, + cache_mode: cache_mode.clone(), }, alias_to_cube.into_iter().map(|(_, c)| c).unique().collect(), self.span_id.clone(), diff --git a/rust/cubesql/cubesql/src/compile/test/mod.rs b/rust/cubesql/cubesql/src/compile/test/mod.rs index 9e78921bf910f..7efc5fdb0ab94 100644 --- a/rust/cubesql/cubesql/src/compile/test/mod.rs +++ b/rust/cubesql/cubesql/src/compile/test/mod.rs @@ -47,6 +47,7 @@ pub mod test_user_change; #[cfg(test)] pub mod test_wrapper; pub mod utils; +use crate::compile::engine::df::scan::CacheMode; use crate::compile::{ arrow::record_batch::RecordBatch, engine::df::scan::convert_transport_response, }; @@ -911,6 +912,7 @@ impl TransportService for TestConnectionTransport { meta: LoadRequestMeta, schema: SchemaRef, member_fields: Vec, + _cache_mode: Option, ) -> Result, CubeError> { { let mut calls = self.load_calls.lock().await; diff --git a/rust/cubesql/cubesql/src/sql/session.rs b/rust/cubesql/cubesql/src/sql/session.rs index 4c08e4b2f3aaa..a51b4cf6fe6d3 100644 --- a/rust/cubesql/cubesql/src/sql/session.rs +++ b/rust/cubesql/cubesql/src/sql/session.rs @@ -9,6 +9,7 @@ use std::{ use tokio_util::sync::CancellationToken; use super::{server_manager::ServerManager, session_manager::SessionManager, AuthContextRef}; +use crate::compile::engine::df::scan::CacheMode; use crate::{ compile::{ DatabaseProtocol, DatabaseProtocolDetails, DatabaseVariable, DatabaseVariables, @@ -89,6 +90,8 @@ pub struct SessionState { pub statements: RWLockAsync>, auth_context_expiration: Duration, + + pub cache_mode: RwLockSync>, } impl SessionState { @@ -120,6 +123,7 @@ impl SessionState { query: RwLockSync::new(QueryState::None), statements: RWLockAsync::new(HashMap::new()), auth_context_expiration, + cache_mode: RwLockSync::new(None), } } diff --git a/rust/cubesql/cubesql/src/transport/mod.rs b/rust/cubesql/cubesql/src/transport/mod.rs index 305abe26b20a8..0ae565f2b51dc 100644 --- a/rust/cubesql/cubesql/src/transport/mod.rs +++ b/rust/cubesql/cubesql/src/transport/mod.rs @@ -22,6 +22,7 @@ pub type CubeMetaFormat = cubeclient::models::V1CubeMetaFormat; pub type TransportLoadResponse = cubeclient::models::V1LoadResponse; pub type TransportLoadRequestQuery = cubeclient::models::V1LoadRequestQuery; pub type TransportLoadRequest = cubeclient::models::V1LoadRequest; +pub type TransportLoadRequestCacheMode = cubeclient::models::Cache; pub type TransportMetaResponse = cubeclient::models::V1MetaResponse; pub type TransportError = cubeclient::models::V1Error; diff --git a/rust/cubesql/cubesql/src/transport/service.rs b/rust/cubesql/cubesql/src/transport/service.rs index 8b5a9dabdf20f..e6e5e32591f7d 100644 --- a/rust/cubesql/cubesql/src/transport/service.rs +++ b/rust/cubesql/cubesql/src/transport/service.rs @@ -25,6 +25,8 @@ use tokio::{ }; use uuid::Uuid; +use crate::compile::engine::df::scan::CacheMode; +use crate::transport::TransportLoadRequestCacheMode; use crate::{ compile::{ engine::df::{ @@ -142,6 +144,7 @@ pub trait TransportService: Send + Sync + Debug { meta_fields: LoadRequestMeta, schema: SchemaRef, member_fields: Vec, + cache_mode: Option, ) -> Result, CubeError>; async fn load_stream( @@ -282,6 +285,7 @@ impl TransportService for HttpTransport { meta: LoadRequestMeta, schema: SchemaRef, member_fields: Vec, + cache_mode: Option, ) -> Result, CubeError> { if meta.change_user().is_some() { return Err(CubeError::internal( @@ -290,10 +294,23 @@ impl TransportService for HttpTransport { )); } + let cache_mode = match cache_mode { + None => None, + Some(m) => match m { + CacheMode::StaleIfSlow => Some(TransportLoadRequestCacheMode::StaleIfSlow), + CacheMode::StaleWhileRevalidate => { + Some(TransportLoadRequestCacheMode::StaleWhileRevalidate) + } + CacheMode::MustRevalidate => Some(TransportLoadRequestCacheMode::MustRevalidate), + CacheMode::NoCache => Some(TransportLoadRequestCacheMode::NoCache), + }, + }; + // TODO: support meta_fields for HTTP let request = TransportLoadRequest { query: Some(query), query_type: Some("multi".to_string()), + cache: cache_mode, }; let response = cube_api::load_v1(&self.get_client_config_for_ctx(ctx), Some(request)).await?; From ce15c7667371db6f15e51ff17ba5c08d7573fb75 Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Fri, 24 Oct 2025 20:16:28 +0300 Subject: [PATCH 3/3] v1.3.83 --- CHANGELOG.md | 13 ++++ lerna.json | 2 +- packages/cubejs-api-gateway/CHANGELOG.md | 6 ++ packages/cubejs-api-gateway/package.json | 10 ++-- packages/cubejs-athena-driver/CHANGELOG.md | 4 ++ packages/cubejs-athena-driver/package.json | 10 ++-- packages/cubejs-backend-cloud/CHANGELOG.md | 4 ++ packages/cubejs-backend-cloud/package.json | 6 +- packages/cubejs-backend-maven/CHANGELOG.md | 4 ++ packages/cubejs-backend-maven/package.json | 6 +- packages/cubejs-backend-native/CHANGELOG.md | 6 ++ packages/cubejs-backend-native/package.json | 8 +-- packages/cubejs-backend-shared/CHANGELOG.md | 6 ++ packages/cubejs-backend-shared/package.json | 4 +- packages/cubejs-base-driver/CHANGELOG.md | 4 ++ packages/cubejs-base-driver/package.json | 6 +- packages/cubejs-bigquery-driver/CHANGELOG.md | 4 ++ packages/cubejs-bigquery-driver/package.json | 8 +-- packages/cubejs-cli/CHANGELOG.md | 4 ++ packages/cubejs-cli/package.json | 12 ++-- .../cubejs-clickhouse-driver/CHANGELOG.md | 4 ++ .../cubejs-clickhouse-driver/package.json | 10 ++-- packages/cubejs-client-core/CHANGELOG.md | 6 ++ packages/cubejs-client-core/package.json | 4 +- packages/cubejs-client-dx/CHANGELOG.md | 6 ++ packages/cubejs-client-dx/package.json | 2 +- packages/cubejs-client-ngx/CHANGELOG.md | 4 ++ packages/cubejs-client-ngx/package.json | 2 +- packages/cubejs-client-react/CHANGELOG.md | 6 ++ packages/cubejs-client-react/package.json | 4 +- packages/cubejs-client-vue/CHANGELOG.md | 4 ++ packages/cubejs-client-vue/package.json | 4 +- packages/cubejs-client-vue3/CHANGELOG.md | 4 ++ packages/cubejs-client-vue3/package.json | 4 +- .../cubejs-client-ws-transport/CHANGELOG.md | 4 ++ .../cubejs-client-ws-transport/package.json | 6 +- packages/cubejs-crate-driver/CHANGELOG.md | 4 ++ packages/cubejs-crate-driver/package.json | 10 ++-- packages/cubejs-cubestore-driver/CHANGELOG.md | 4 ++ packages/cubejs-cubestore-driver/package.json | 12 ++-- .../CHANGELOG.md | 4 ++ .../package.json | 12 ++-- .../cubejs-dbt-schema-extension/CHANGELOG.md | 4 ++ .../cubejs-dbt-schema-extension/package.json | 8 +-- packages/cubejs-docker/CHANGELOG.md | 4 ++ packages/cubejs-docker/package.json | 60 +++++++++---------- packages/cubejs-dremio-driver/CHANGELOG.md | 4 ++ packages/cubejs-dremio-driver/package.json | 12 ++-- packages/cubejs-druid-driver/CHANGELOG.md | 4 ++ packages/cubejs-druid-driver/package.json | 10 ++-- packages/cubejs-duckdb-driver/CHANGELOG.md | 4 ++ packages/cubejs-duckdb-driver/package.json | 12 ++-- .../cubejs-elasticsearch-driver/CHANGELOG.md | 4 ++ .../cubejs-elasticsearch-driver/package.json | 8 +-- packages/cubejs-firebolt-driver/CHANGELOG.md | 4 ++ packages/cubejs-firebolt-driver/package.json | 12 ++-- packages/cubejs-hive-driver/CHANGELOG.md | 4 ++ packages/cubejs-hive-driver/package.json | 8 +-- packages/cubejs-jdbc-driver/CHANGELOG.md | 4 ++ packages/cubejs-jdbc-driver/package.json | 8 +-- packages/cubejs-ksql-driver/CHANGELOG.md | 4 ++ packages/cubejs-ksql-driver/package.json | 10 ++-- packages/cubejs-linter/CHANGELOG.md | 4 ++ packages/cubejs-linter/package.json | 2 +- .../cubejs-materialize-driver/CHANGELOG.md | 4 ++ .../cubejs-materialize-driver/package.json | 12 ++-- packages/cubejs-mongobi-driver/CHANGELOG.md | 4 ++ packages/cubejs-mongobi-driver/package.json | 8 +-- packages/cubejs-mssql-driver/CHANGELOG.md | 4 ++ packages/cubejs-mssql-driver/package.json | 6 +- .../CHANGELOG.md | 4 ++ .../package.json | 8 +-- packages/cubejs-mysql-driver/CHANGELOG.md | 4 ++ packages/cubejs-mysql-driver/package.json | 10 ++-- packages/cubejs-oracle-driver/CHANGELOG.md | 4 ++ packages/cubejs-oracle-driver/package.json | 4 +- packages/cubejs-pinot-driver/CHANGELOG.md | 4 ++ packages/cubejs-pinot-driver/package.json | 10 ++-- packages/cubejs-playground/CHANGELOG.md | 4 ++ packages/cubejs-playground/package.json | 6 +- packages/cubejs-postgres-driver/CHANGELOG.md | 4 ++ packages/cubejs-postgres-driver/package.json | 10 ++-- packages/cubejs-prestodb-driver/CHANGELOG.md | 4 ++ packages/cubejs-prestodb-driver/package.json | 8 +-- .../cubejs-query-orchestrator/CHANGELOG.md | 6 ++ .../cubejs-query-orchestrator/package.json | 10 ++-- packages/cubejs-questdb-driver/CHANGELOG.md | 4 ++ packages/cubejs-questdb-driver/package.json | 12 ++-- packages/cubejs-redshift-driver/CHANGELOG.md | 4 ++ packages/cubejs-redshift-driver/package.json | 10 ++-- packages/cubejs-schema-compiler/CHANGELOG.md | 10 ++++ packages/cubejs-schema-compiler/package.json | 10 ++-- packages/cubejs-server-core/CHANGELOG.md | 6 ++ packages/cubejs-server-core/package.json | 22 +++---- packages/cubejs-server/CHANGELOG.md | 4 ++ packages/cubejs-server/package.json | 14 ++--- packages/cubejs-snowflake-driver/CHANGELOG.md | 4 ++ packages/cubejs-snowflake-driver/package.json | 8 +-- packages/cubejs-sqlite-driver/CHANGELOG.md | 4 ++ packages/cubejs-sqlite-driver/package.json | 8 +-- packages/cubejs-templates/CHANGELOG.md | 4 ++ packages/cubejs-templates/package.json | 6 +- packages/cubejs-testing-drivers/CHANGELOG.md | 6 ++ packages/cubejs-testing-drivers/package.json | 36 +++++------ packages/cubejs-testing-shared/CHANGELOG.md | 4 ++ packages/cubejs-testing-shared/package.json | 10 ++-- packages/cubejs-testing/CHANGELOG.md | 4 ++ packages/cubejs-testing/package.json | 22 +++---- packages/cubejs-trino-driver/CHANGELOG.md | 4 ++ packages/cubejs-trino-driver/package.json | 12 ++-- packages/cubejs-vertica-driver/CHANGELOG.md | 4 ++ packages/cubejs-vertica-driver/package.json | 12 ++-- rust/cubesql/CHANGELOG.md | 7 +++ rust/cubesql/package.json | 2 +- rust/cubestore/CHANGELOG.md | 4 ++ rust/cubestore/package.json | 6 +- 116 files changed, 555 insertions(+), 287 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61e4675821b05..fe3dc881fdf41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Bug Fixes + +- **client-react:** isLoading is set to false early ([#10075](https://github.com/cube-js/cube/issues/10075)) ([06afa28](https://github.com/cube-js/cube/commit/06afa28f8c1a06a4e05ba54d9931512749cc42b0)) +- **tesseract:** Fix member name case conversion ([#10064](https://github.com/cube-js/cube/issues/10064)) ([6523074](https://github.com/cube-js/cube/commit/6523074f3e5d1c3537efb3fd1002eb5d79772d85)) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) +- **cubesql:** Push down `CAST(... AS DATE)` to CubeScan filters ([#10081](https://github.com/cube-js/cube/issues/10081)) ([61a94ef](https://github.com/cube-js/cube/commit/61a94ef9086d79bfcb5a370d2684f9b20b100022)) +- **schema-compiler:** Support time series queries in MySQL dialect in Tesseract ([#10078](https://github.com/cube-js/cube/issues/10078)) ([765cd77](https://github.com/cube-js/cube/commit/765cd7787e2b62abebd1bbdd81bb85567cbff799)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) ### Bug Fixes diff --git a/lerna.json b/lerna.json index 9c546db8fd411..3f0b55bb5ec0b 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.3.82", + "version": "1.3.83", "npmClient": "yarn", "command": { "bootstrap": { diff --git a/packages/cubejs-api-gateway/CHANGELOG.md b/packages/cubejs-api-gateway/CHANGELOG.md index 9065123e79099..55f33e58250e2 100644 --- a/packages/cubejs-api-gateway/CHANGELOG.md +++ b/packages/cubejs-api-gateway/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/api-gateway diff --git a/packages/cubejs-api-gateway/package.json b/packages/cubejs-api-gateway/package.json index 35ac4b20c5ace..f9e440f267578 100644 --- a/packages/cubejs-api-gateway/package.json +++ b/packages/cubejs-api-gateway/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/api-gateway", "description": "Cube.js API Gateway", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,9 +27,9 @@ "dist/src/*" ], "dependencies": { - "@cubejs-backend/native": "1.3.82", - "@cubejs-backend/shared": "1.3.82", - "@cubejs-backend/query-orchestrator": "1.3.82", + "@cubejs-backend/native": "1.3.83", + "@cubejs-backend/query-orchestrator": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@ungap/structured-clone": "^0.3.4", "assert-never": "^1.4.0", "body-parser": "^1.19.0", @@ -52,7 +52,7 @@ "uuid": "^8.3.2" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/express": "^4.17.21", "@types/jest": "^29", "@types/jsonwebtoken": "^9.0.2", diff --git a/packages/cubejs-athena-driver/CHANGELOG.md b/packages/cubejs-athena-driver/CHANGELOG.md index 591a6a87e048c..27adda9490b26 100644 --- a/packages/cubejs-athena-driver/CHANGELOG.md +++ b/packages/cubejs-athena-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/athena-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/athena-driver diff --git a/packages/cubejs-athena-driver/package.json b/packages/cubejs-athena-driver/package.json index 0bc7097b7d75e..2432bf821227c 100644 --- a/packages/cubejs-athena-driver/package.json +++ b/packages/cubejs-athena-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/athena-driver", "description": "Cube.js Athena database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -30,13 +30,13 @@ "dependencies": { "@aws-sdk/client-athena": "^3.22.0", "@aws-sdk/credential-providers": "^3.22.0", - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "sqlstring": "^2.3.1" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "@types/ramda": "^0.27.40", "typescript": "~5.2.2" }, diff --git a/packages/cubejs-backend-cloud/CHANGELOG.md b/packages/cubejs-backend-cloud/CHANGELOG.md index df7cbbd9f02c7..2aed2e58965c3 100644 --- a/packages/cubejs-backend-cloud/CHANGELOG.md +++ b/packages/cubejs-backend-cloud/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/cloud + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/cloud diff --git a/packages/cubejs-backend-cloud/package.json b/packages/cubejs-backend-cloud/package.json index 87f4ed4ecadcb..498d5b574aa64 100644 --- a/packages/cubejs-backend-cloud/package.json +++ b/packages/cubejs-backend-cloud/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/cloud", - "version": "1.3.82", + "version": "1.3.83", "description": "Cube Cloud package", "main": "dist/src/index.js", "typings": "dist/src/index.d.ts", @@ -25,7 +25,7 @@ "devDependencies": { "@babel/core": "^7.24.5", "@babel/preset-env": "^7.24.5", - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/fs-extra": "^9.0.8", "@types/jest": "^29", "jest": "^29", @@ -33,7 +33,7 @@ }, "dependencies": { "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/shared": "1.3.83", "chokidar": "^3.5.1", "env-var": "^6.3.0", "form-data": "^4.0.0", diff --git a/packages/cubejs-backend-maven/CHANGELOG.md b/packages/cubejs-backend-maven/CHANGELOG.md index 3b12b185da212..f7bcc99e8f797 100644 --- a/packages/cubejs-backend-maven/CHANGELOG.md +++ b/packages/cubejs-backend-maven/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/maven + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/maven diff --git a/packages/cubejs-backend-maven/package.json b/packages/cubejs-backend-maven/package.json index d1d4093eeee64..a1530f18599b2 100644 --- a/packages/cubejs-backend-maven/package.json +++ b/packages/cubejs-backend-maven/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/maven", "description": "Cube.js Maven Wrapper for java dependencies downloading", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "license": "Apache-2.0", "repository": { "type": "git", @@ -31,12 +31,12 @@ "dist/src/*" ], "dependencies": { - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/shared": "1.3.83", "source-map-support": "^0.5.19", "xmlbuilder2": "^2.4.0" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "@types/node": "^20", "jest": "^29", diff --git a/packages/cubejs-backend-native/CHANGELOG.md b/packages/cubejs-backend-native/CHANGELOG.md index 7c6c7f5c4c7fa..6f8e946134981 100644 --- a/packages/cubejs-backend-native/CHANGELOG.md +++ b/packages/cubejs-backend-native/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/native diff --git a/packages/cubejs-backend-native/package.json b/packages/cubejs-backend-native/package.json index 69284dc58c278..bde3c66ea1c55 100644 --- a/packages/cubejs-backend-native/package.json +++ b/packages/cubejs-backend-native/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/native", - "version": "1.3.82", + "version": "1.3.83", "author": "Cube Dev, Inc.", "description": "Native module for Cube.js (binding to Rust codebase)", "main": "dist/js/index.js", @@ -35,7 +35,7 @@ "dist/js" ], "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "@types/node": "^20", "cargo-cp-artifact": "^0.1.9", @@ -46,8 +46,8 @@ "uuid": "^8.3.2" }, "dependencies": { - "@cubejs-backend/cubesql": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/cubesql": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@cubejs-infra/post-installer": "^0.0.7" }, "resources": { diff --git a/packages/cubejs-backend-shared/CHANGELOG.md b/packages/cubejs-backend-shared/CHANGELOG.md index c3439e29e09c4..ccd8aa7d7c40f 100644 --- a/packages/cubejs-backend-shared/CHANGELOG.md +++ b/packages/cubejs-backend-shared/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/shared diff --git a/packages/cubejs-backend-shared/package.json b/packages/cubejs-backend-shared/package.json index afaffe555c227..c1b58a69643cb 100644 --- a/packages/cubejs-backend-shared/package.json +++ b/packages/cubejs-backend-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/shared", - "version": "1.3.82", + "version": "1.3.83", "description": "Shared code for Cube.js backend packages", "main": "dist/src/index.js", "typings": "dist/src/index.d.ts", @@ -22,7 +22,7 @@ "author": "Cube Dev, Inc.", "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/bytes": "^3.1.5", "@types/cli-progress": "^3.9.1", "@types/decompress": "^4.2.7", diff --git a/packages/cubejs-base-driver/CHANGELOG.md b/packages/cubejs-base-driver/CHANGELOG.md index 52c309923c6f9..69566bb90f516 100644 --- a/packages/cubejs-base-driver/CHANGELOG.md +++ b/packages/cubejs-base-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/base-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/base-driver diff --git a/packages/cubejs-base-driver/package.json b/packages/cubejs-base-driver/package.json index ecef27fc9df18..cb90f89cb2016 100644 --- a/packages/cubejs-base-driver/package.json +++ b/packages/cubejs-base-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/base-driver", "description": "Cube.js Base Driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -33,11 +33,11 @@ "@aws-sdk/s3-request-presigner": "^3.49.0", "@azure/identity": "^4.4.1", "@azure/storage-blob": "^12.9.0", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/shared": "1.3.83", "@google-cloud/storage": "^7.13.0" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "@types/node": "^20", "jest": "^29", diff --git a/packages/cubejs-bigquery-driver/CHANGELOG.md b/packages/cubejs-bigquery-driver/CHANGELOG.md index a5670ee3f3116..2574b263b6347 100644 --- a/packages/cubejs-bigquery-driver/CHANGELOG.md +++ b/packages/cubejs-bigquery-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/bigquery-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/bigquery-driver diff --git a/packages/cubejs-bigquery-driver/package.json b/packages/cubejs-bigquery-driver/package.json index f0d5dace9afe4..1d1d02b37ee42 100644 --- a/packages/cubejs-bigquery-driver/package.json +++ b/packages/cubejs-bigquery-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/bigquery-driver", "description": "Cube.js BigQuery database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -28,15 +28,15 @@ "main": "index.js", "types": "dist/src/index.d.ts", "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/shared": "1.3.83", "@google-cloud/bigquery": "^7.7.0", "@google-cloud/storage": "^7.13.0", "ramda": "^0.27.2" }, "devDependencies": { - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/testing-shared": "1.3.83", "@types/big.js": "^6.2.2", "@types/dedent": "^0.7.0", "@types/jest": "^29", diff --git a/packages/cubejs-cli/CHANGELOG.md b/packages/cubejs-cli/CHANGELOG.md index bc3da052b37a6..a0215ae1afe2e 100644 --- a/packages/cubejs-cli/CHANGELOG.md +++ b/packages/cubejs-cli/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package cubejs-cli + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package cubejs-cli diff --git a/packages/cubejs-cli/package.json b/packages/cubejs-cli/package.json index e65647c228182..c4bcbebf6a14d 100644 --- a/packages/cubejs-cli/package.json +++ b/packages/cubejs-cli/package.json @@ -2,7 +2,7 @@ "name": "cubejs-cli", "description": "Cube.js Command Line Interface", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -30,10 +30,10 @@ "LICENSE" ], "dependencies": { - "@cubejs-backend/cloud": "1.3.82", + "@cubejs-backend/cloud": "1.3.83", "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "chalk": "^2.4.2", "cli-progress": "^3.10", "commander": "^2.19.0", @@ -50,8 +50,8 @@ "colors": "1.4.0" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/server": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/server": "1.3.83", "@oclif/command": "^1.8.0", "@types/cli-progress": "^3.8.0", "@types/cross-spawn": "^6.0.2", diff --git a/packages/cubejs-clickhouse-driver/CHANGELOG.md b/packages/cubejs-clickhouse-driver/CHANGELOG.md index ea37aa0903123..b75bf4d7d7c68 100644 --- a/packages/cubejs-clickhouse-driver/CHANGELOG.md +++ b/packages/cubejs-clickhouse-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/clickhouse-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/clickhouse-driver diff --git a/packages/cubejs-clickhouse-driver/package.json b/packages/cubejs-clickhouse-driver/package.json index 2e59f7633083d..42806c06eb78e 100644 --- a/packages/cubejs-clickhouse-driver/package.json +++ b/packages/cubejs-clickhouse-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/clickhouse-driver", "description": "Cube.js ClickHouse database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -28,16 +28,16 @@ }, "dependencies": { "@clickhouse/client": "^1.12.0", - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "moment": "^2.24.0", "sqlstring": "^2.3.1", "uuid": "^8.3.2" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "@types/jest": "^29", "jest": "^29", "typescript": "~5.2.2" diff --git a/packages/cubejs-client-core/CHANGELOG.md b/packages/cubejs-client-core/CHANGELOG.md index 5145bc9a8d944..517f5edd19c74 100644 --- a/packages/cubejs-client-core/CHANGELOG.md +++ b/packages/cubejs-client-core/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-client/core diff --git a/packages/cubejs-client-core/package.json b/packages/cubejs-client-core/package.json index d325899178de6..b8bac9e2368b4 100644 --- a/packages/cubejs-client-core/package.json +++ b/packages/cubejs-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-client/core", - "version": "1.3.82", + "version": "1.3.83", "engines": {}, "repository": { "type": "git", @@ -38,7 +38,7 @@ ], "license": "MIT", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "@types/moment-range": "^4.0.0", "@types/ramda": "^0.27.34", diff --git a/packages/cubejs-client-dx/CHANGELOG.md b/packages/cubejs-client-dx/CHANGELOG.md index 30d57285b8c43..fa0317b8d2ca4 100644 --- a/packages/cubejs-client-dx/CHANGELOG.md +++ b/packages/cubejs-client-dx/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-client/dx diff --git a/packages/cubejs-client-dx/package.json b/packages/cubejs-client-dx/package.json index 067a9c7eaebe9..9837f2176585d 100644 --- a/packages/cubejs-client-dx/package.json +++ b/packages/cubejs-client-dx/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-client/dx", - "version": "1.3.82", + "version": "1.3.83", "engines": {}, "repository": { "type": "git", diff --git a/packages/cubejs-client-ngx/CHANGELOG.md b/packages/cubejs-client-ngx/CHANGELOG.md index 0d777d6ec79a8..2ce536eeb736e 100644 --- a/packages/cubejs-client-ngx/CHANGELOG.md +++ b/packages/cubejs-client-ngx/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-client/ngx + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-client/ngx diff --git a/packages/cubejs-client-ngx/package.json b/packages/cubejs-client-ngx/package.json index 98a638d116446..e4fbbde9c3c62 100644 --- a/packages/cubejs-client-ngx/package.json +++ b/packages/cubejs-client-ngx/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-client/ngx", - "version": "1.3.82", + "version": "1.3.83", "author": "Cube Dev, Inc.", "engines": {}, "repository": { diff --git a/packages/cubejs-client-react/CHANGELOG.md b/packages/cubejs-client-react/CHANGELOG.md index f5cc4b76c285c..0b6f510fad76b 100644 --- a/packages/cubejs-client-react/CHANGELOG.md +++ b/packages/cubejs-client-react/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Bug Fixes + +- **client-react:** isLoading is set to false early ([#10075](https://github.com/cube-js/cube/issues/10075)) ([06afa28](https://github.com/cube-js/cube/commit/06afa28f8c1a06a4e05ba54d9931512749cc42b0)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-client/react diff --git a/packages/cubejs-client-react/package.json b/packages/cubejs-client-react/package.json index b4a4a70b3d24b..0c6cde61bca35 100644 --- a/packages/cubejs-client-react/package.json +++ b/packages/cubejs-client-react/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-client/react", - "version": "1.3.82", + "version": "1.3.83", "author": "Cube Dev, Inc.", "license": "MIT", "engines": {}, @@ -24,7 +24,7 @@ ], "dependencies": { "@babel/runtime": "^7.1.2", - "@cubejs-client/core": "1.3.82", + "@cubejs-client/core": "1.3.83", "core-js": "^3.6.5", "ramda": "^0.27.2" }, diff --git a/packages/cubejs-client-vue/CHANGELOG.md b/packages/cubejs-client-vue/CHANGELOG.md index 0abcc4c7890e7..6234c97713993 100644 --- a/packages/cubejs-client-vue/CHANGELOG.md +++ b/packages/cubejs-client-vue/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube.js/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-client/vue + ## [1.3.82](https://github.com/cube-js/cube.js/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-client/vue diff --git a/packages/cubejs-client-vue/package.json b/packages/cubejs-client-vue/package.json index 3eb01117cf547..23a10a77e53b1 100644 --- a/packages/cubejs-client-vue/package.json +++ b/packages/cubejs-client-vue/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-client/vue", - "version": "1.3.82", + "version": "1.3.83", "engines": {}, "repository": { "type": "git", @@ -28,7 +28,7 @@ "src" ], "dependencies": { - "@cubejs-client/core": "1.3.82", + "@cubejs-client/core": "1.3.83", "core-js": "^3.6.5", "ramda": "^0.27.2" }, diff --git a/packages/cubejs-client-vue3/CHANGELOG.md b/packages/cubejs-client-vue3/CHANGELOG.md index 67f727434d14b..2a84aa5248464 100644 --- a/packages/cubejs-client-vue3/CHANGELOG.md +++ b/packages/cubejs-client-vue3/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube.js/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-client/vue3 + ## [1.3.82](https://github.com/cube-js/cube.js/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-client/vue3 diff --git a/packages/cubejs-client-vue3/package.json b/packages/cubejs-client-vue3/package.json index d6a317fe40d1f..e2f14f6fef4a0 100644 --- a/packages/cubejs-client-vue3/package.json +++ b/packages/cubejs-client-vue3/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-client/vue3", - "version": "1.3.82", + "version": "1.3.83", "engines": {}, "repository": { "type": "git", @@ -28,7 +28,7 @@ "src" ], "dependencies": { - "@cubejs-client/core": "1.3.82", + "@cubejs-client/core": "1.3.83", "ramda": "^0.27.0" }, "devDependencies": { diff --git a/packages/cubejs-client-ws-transport/CHANGELOG.md b/packages/cubejs-client-ws-transport/CHANGELOG.md index d9187a368ee5d..ccdb9c0e945cb 100644 --- a/packages/cubejs-client-ws-transport/CHANGELOG.md +++ b/packages/cubejs-client-ws-transport/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-client/ws-transport + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-client/ws-transport diff --git a/packages/cubejs-client-ws-transport/package.json b/packages/cubejs-client-ws-transport/package.json index 50c2ee0891e4a..d9fb066d22eb6 100644 --- a/packages/cubejs-client-ws-transport/package.json +++ b/packages/cubejs-client-ws-transport/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-client/ws-transport", - "version": "1.3.82", + "version": "1.3.83", "engines": {}, "repository": { "type": "git", @@ -20,7 +20,7 @@ }, "dependencies": { "@babel/runtime": "^7.1.2", - "@cubejs-client/core": "1.3.82", + "@cubejs-client/core": "1.3.83", "core-js": "^3.6.5", "isomorphic-ws": "^4.0.1", "ws": "^7.3.1" @@ -33,7 +33,7 @@ "@babel/core": "^7.3.3", "@babel/preset-env": "^7.3.1", "@babel/preset-typescript": "^7.12.1", - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/ws": "^7.2.9", "typescript": "~5.2.2" }, diff --git a/packages/cubejs-crate-driver/CHANGELOG.md b/packages/cubejs-crate-driver/CHANGELOG.md index 2038aa6cd9335..316791abb2376 100644 --- a/packages/cubejs-crate-driver/CHANGELOG.md +++ b/packages/cubejs-crate-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/crate-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/crate-driver diff --git a/packages/cubejs-crate-driver/package.json b/packages/cubejs-crate-driver/package.json index 728fd998ad782..e62388e088d20 100644 --- a/packages/cubejs-crate-driver/package.json +++ b/packages/cubejs-crate-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/crate-driver", "description": "Cube.js Crate database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -28,14 +28,14 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/postgres-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/postgres-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "pg": "^8.7.1" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "testcontainers": "^10.28.0", "typescript": "~5.2.2" }, diff --git a/packages/cubejs-cubestore-driver/CHANGELOG.md b/packages/cubejs-cubestore-driver/CHANGELOG.md index 1ad152192a7d6..0956785799f00 100644 --- a/packages/cubejs-cubestore-driver/CHANGELOG.md +++ b/packages/cubejs-cubestore-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/cubestore-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/cubestore-driver diff --git a/packages/cubejs-cubestore-driver/package.json b/packages/cubejs-cubestore-driver/package.json index 3b73471c4bf7d..1f2bb7afac310 100644 --- a/packages/cubejs-cubestore-driver/package.json +++ b/packages/cubejs-cubestore-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/cubestore-driver", "description": "Cube Store driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -26,10 +26,10 @@ "lint:fix": "eslint --fix src/*.ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/cubestore": "1.3.82", - "@cubejs-backend/native": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/cubestore": "1.3.83", + "@cubejs-backend/native": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "csv-write-stream": "^2.0.0", "flatbuffers": "23.3.3", "fs-extra": "^9.1.0", @@ -41,7 +41,7 @@ "ws": "^7.4.3" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/csv-write-stream": "^2.0.0", "@types/jest": "^29", "@types/node": "^20", diff --git a/packages/cubejs-databricks-jdbc-driver/CHANGELOG.md b/packages/cubejs-databricks-jdbc-driver/CHANGELOG.md index 4a949aa3225e8..587d6261061cb 100644 --- a/packages/cubejs-databricks-jdbc-driver/CHANGELOG.md +++ b/packages/cubejs-databricks-jdbc-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/databricks-jdbc-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/databricks-jdbc-driver diff --git a/packages/cubejs-databricks-jdbc-driver/package.json b/packages/cubejs-databricks-jdbc-driver/package.json index c3ce7cf6dd5fd..32edd0e242e3c 100644 --- a/packages/cubejs-databricks-jdbc-driver/package.json +++ b/packages/cubejs-databricks-jdbc-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/databricks-jdbc-driver", "description": "Cube.js Databricks database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "license": "Apache-2.0", "repository": { "type": "git", @@ -30,17 +30,17 @@ "bin" ], "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/jdbc-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/jdbc-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "node-fetch": "^2.6.1", "ramda": "^0.27.2", "source-map-support": "^0.5.19", "uuid": "^8.3.2" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "@types/node": "^20", "@types/ramda": "^0.27.34", diff --git a/packages/cubejs-dbt-schema-extension/CHANGELOG.md b/packages/cubejs-dbt-schema-extension/CHANGELOG.md index db22d2ddb0a2c..821201e104c79 100644 --- a/packages/cubejs-dbt-schema-extension/CHANGELOG.md +++ b/packages/cubejs-dbt-schema-extension/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/dbt-schema-extension + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/dbt-schema-extension diff --git a/packages/cubejs-dbt-schema-extension/package.json b/packages/cubejs-dbt-schema-extension/package.json index 976dafbc1486c..3703c3e5c9939 100644 --- a/packages/cubejs-dbt-schema-extension/package.json +++ b/packages/cubejs-dbt-schema-extension/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/dbt-schema-extension", "description": "Cube.js dbt Schema Extension", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -25,14 +25,14 @@ "lint:fix": "eslint --fix src/* --ext .ts,.js" }, "dependencies": { - "@cubejs-backend/schema-compiler": "1.3.82", + "@cubejs-backend/schema-compiler": "1.3.83", "fs-extra": "^9.1.0", "inflection": "^1.12.0", "node-fetch": "^2.6.1" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing": "1.3.83", "@types/jest": "^29", "jest": "^29", "stream-to-array": "^2.3.0", diff --git a/packages/cubejs-docker/CHANGELOG.md b/packages/cubejs-docker/CHANGELOG.md index 4e5900f8539da..549dfaba642c3 100644 --- a/packages/cubejs-docker/CHANGELOG.md +++ b/packages/cubejs-docker/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/docker + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/docker diff --git a/packages/cubejs-docker/package.json b/packages/cubejs-docker/package.json index 6f9d2fefef7b2..ff7cb8f867439 100644 --- a/packages/cubejs-docker/package.json +++ b/packages/cubejs-docker/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/docker", - "version": "1.3.82", + "version": "1.3.83", "description": "Cube.js In Docker (virtual package)", "author": "Cube Dev, Inc.", "license": "Apache-2.0", @@ -9,35 +9,35 @@ "node": ">=18.0.0" }, "dependencies": { - "@cubejs-backend/athena-driver": "1.3.82", - "@cubejs-backend/bigquery-driver": "1.3.82", - "@cubejs-backend/clickhouse-driver": "1.3.82", - "@cubejs-backend/crate-driver": "1.3.82", - "@cubejs-backend/databricks-jdbc-driver": "1.3.82", - "@cubejs-backend/dbt-schema-extension": "1.3.82", - "@cubejs-backend/dremio-driver": "1.3.82", - "@cubejs-backend/druid-driver": "1.3.82", - "@cubejs-backend/duckdb-driver": "1.3.82", - "@cubejs-backend/elasticsearch-driver": "1.3.82", - "@cubejs-backend/firebolt-driver": "1.3.82", - "@cubejs-backend/hive-driver": "1.3.82", - "@cubejs-backend/ksql-driver": "1.3.82", - "@cubejs-backend/materialize-driver": "1.3.82", - "@cubejs-backend/mongobi-driver": "1.3.82", - "@cubejs-backend/mssql-driver": "1.3.82", - "@cubejs-backend/mysql-driver": "1.3.82", - "@cubejs-backend/oracle-driver": "1.3.82", - "@cubejs-backend/pinot-driver": "1.3.82", - "@cubejs-backend/postgres-driver": "1.3.82", - "@cubejs-backend/prestodb-driver": "1.3.82", - "@cubejs-backend/questdb-driver": "1.3.82", - "@cubejs-backend/redshift-driver": "1.3.82", - "@cubejs-backend/server": "1.3.82", - "@cubejs-backend/snowflake-driver": "1.3.82", - "@cubejs-backend/sqlite-driver": "1.3.82", - "@cubejs-backend/trino-driver": "1.3.82", - "@cubejs-backend/vertica-driver": "1.3.82", - "cubejs-cli": "1.3.82", + "@cubejs-backend/athena-driver": "1.3.83", + "@cubejs-backend/bigquery-driver": "1.3.83", + "@cubejs-backend/clickhouse-driver": "1.3.83", + "@cubejs-backend/crate-driver": "1.3.83", + "@cubejs-backend/databricks-jdbc-driver": "1.3.83", + "@cubejs-backend/dbt-schema-extension": "1.3.83", + "@cubejs-backend/dremio-driver": "1.3.83", + "@cubejs-backend/druid-driver": "1.3.83", + "@cubejs-backend/duckdb-driver": "1.3.83", + "@cubejs-backend/elasticsearch-driver": "1.3.83", + "@cubejs-backend/firebolt-driver": "1.3.83", + "@cubejs-backend/hive-driver": "1.3.83", + "@cubejs-backend/ksql-driver": "1.3.83", + "@cubejs-backend/materialize-driver": "1.3.83", + "@cubejs-backend/mongobi-driver": "1.3.83", + "@cubejs-backend/mssql-driver": "1.3.83", + "@cubejs-backend/mysql-driver": "1.3.83", + "@cubejs-backend/oracle-driver": "1.3.83", + "@cubejs-backend/pinot-driver": "1.3.83", + "@cubejs-backend/postgres-driver": "1.3.83", + "@cubejs-backend/prestodb-driver": "1.3.83", + "@cubejs-backend/questdb-driver": "1.3.83", + "@cubejs-backend/redshift-driver": "1.3.83", + "@cubejs-backend/server": "1.3.83", + "@cubejs-backend/snowflake-driver": "1.3.83", + "@cubejs-backend/sqlite-driver": "1.3.83", + "@cubejs-backend/trino-driver": "1.3.83", + "@cubejs-backend/vertica-driver": "1.3.83", + "cubejs-cli": "1.3.83", "typescript": "~5.2.2" }, "resolutions": { diff --git a/packages/cubejs-dremio-driver/CHANGELOG.md b/packages/cubejs-dremio-driver/CHANGELOG.md index 742f4da7d6457..44460b095009e 100644 --- a/packages/cubejs-dremio-driver/CHANGELOG.md +++ b/packages/cubejs-dremio-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/dremio-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/dremio-driver diff --git a/packages/cubejs-dremio-driver/package.json b/packages/cubejs-dremio-driver/package.json index 3349922f4dda5..2841545d180d7 100644 --- a/packages/cubejs-dremio-driver/package.json +++ b/packages/cubejs-dremio-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/dremio-driver", "description": "Cube.js Dremio driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -22,15 +22,15 @@ "lint:fix": "eslint driver/*.js" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "axios": "^1.8.3", "sqlstring": "^2.3.1" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "jest": "^29" }, "license": "Apache-2.0", diff --git a/packages/cubejs-druid-driver/CHANGELOG.md b/packages/cubejs-druid-driver/CHANGELOG.md index 7e83772169032..2a85b206cdeb4 100644 --- a/packages/cubejs-druid-driver/CHANGELOG.md +++ b/packages/cubejs-druid-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/druid-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/druid-driver diff --git a/packages/cubejs-druid-driver/package.json b/packages/cubejs-druid-driver/package.json index 7a4bde6ab248a..f03f6bcc98f00 100644 --- a/packages/cubejs-druid-driver/package.json +++ b/packages/cubejs-druid-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/druid-driver", "description": "Cube.js Druid database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "license": "Apache-2.0", "repository": { "type": "git", @@ -28,13 +28,13 @@ "dist/src/*" ], "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "axios": "^1.8.3" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "@types/node": "^20", "jest": "^29", diff --git a/packages/cubejs-duckdb-driver/CHANGELOG.md b/packages/cubejs-duckdb-driver/CHANGELOG.md index 6c1dedcf6e184..3c5289a323bf5 100644 --- a/packages/cubejs-duckdb-driver/CHANGELOG.md +++ b/packages/cubejs-duckdb-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/duckdb-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/duckdb-driver diff --git a/packages/cubejs-duckdb-driver/package.json b/packages/cubejs-duckdb-driver/package.json index 6b95604e24223..14ff215cdfd1f 100644 --- a/packages/cubejs-duckdb-driver/package.json +++ b/packages/cubejs-duckdb-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/duckdb-driver", "description": "Cube DuckDB database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,15 +27,15 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "duckdb": "^1.3.1" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "@types/jest": "^29", "@types/node": "^20", "jest": "^29", diff --git a/packages/cubejs-elasticsearch-driver/CHANGELOG.md b/packages/cubejs-elasticsearch-driver/CHANGELOG.md index c7ec213bc2893..c1abf83cd05cb 100644 --- a/packages/cubejs-elasticsearch-driver/CHANGELOG.md +++ b/packages/cubejs-elasticsearch-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/elasticsearch-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/elasticsearch-driver diff --git a/packages/cubejs-elasticsearch-driver/package.json b/packages/cubejs-elasticsearch-driver/package.json index 8691adc76f8b7..6119fa41dab52 100644 --- a/packages/cubejs-elasticsearch-driver/package.json +++ b/packages/cubejs-elasticsearch-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/elasticsearch-driver", "description": "Cube.js elasticsearch database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -23,14 +23,14 @@ "driver" ], "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@elastic/elasticsearch": "7.12.0", "sqlstring": "^2.3.1" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "jest": "^29", "testcontainers": "^10.28.0" diff --git a/packages/cubejs-firebolt-driver/CHANGELOG.md b/packages/cubejs-firebolt-driver/CHANGELOG.md index d8d83575f4205..013d659117492 100644 --- a/packages/cubejs-firebolt-driver/CHANGELOG.md +++ b/packages/cubejs-firebolt-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/firebolt-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/firebolt-driver diff --git a/packages/cubejs-firebolt-driver/package.json b/packages/cubejs-firebolt-driver/package.json index 8c97a200a77e3..7f5e910515a39 100644 --- a/packages/cubejs-firebolt-driver/package.json +++ b/packages/cubejs-firebolt-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/firebolt-driver", "description": "Cube.js Firebolt database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -28,15 +28,15 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "firebolt-sdk": "1.10.0" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "typescript": "~5.2.2" }, "publishConfig": { diff --git a/packages/cubejs-hive-driver/CHANGELOG.md b/packages/cubejs-hive-driver/CHANGELOG.md index dae6fcdb259c8..fa67627a8e84b 100644 --- a/packages/cubejs-hive-driver/CHANGELOG.md +++ b/packages/cubejs-hive-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/hive-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/hive-driver diff --git a/packages/cubejs-hive-driver/package.json b/packages/cubejs-hive-driver/package.json index 83c23652b1c3e..6860d574d13dc 100644 --- a/packages/cubejs-hive-driver/package.json +++ b/packages/cubejs-hive-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/hive-driver", "description": "Cube.js Hive database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -17,8 +17,8 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "generic-pool": "^3.8.2", "jshs2": "^0.4.4", "sasl-plain": "^0.1.0", @@ -28,7 +28,7 @@ }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82" + "@cubejs-backend/linter": "1.3.83" }, "publishConfig": { "access": "public" diff --git a/packages/cubejs-jdbc-driver/CHANGELOG.md b/packages/cubejs-jdbc-driver/CHANGELOG.md index aaada3768ccb6..a84ed51e3fe4a 100644 --- a/packages/cubejs-jdbc-driver/CHANGELOG.md +++ b/packages/cubejs-jdbc-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/jdbc-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/jdbc-driver diff --git a/packages/cubejs-jdbc-driver/package.json b/packages/cubejs-jdbc-driver/package.json index 290153cbba805..0889619f64701 100644 --- a/packages/cubejs-jdbc-driver/package.json +++ b/packages/cubejs-jdbc-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/jdbc-driver", "description": "Cube.js JDBC database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -25,9 +25,9 @@ "index.js" ], "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", "@cubejs-backend/node-java-maven": "^0.1.3", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/shared": "1.3.83", "generic-pool": "^3.9.0", "sqlstring": "^2.3.0" }, @@ -43,7 +43,7 @@ "testEnvironment": "node" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/node": "^20", "@types/sqlstring": "^2.3.0", "typescript": "~5.2.2" diff --git a/packages/cubejs-ksql-driver/CHANGELOG.md b/packages/cubejs-ksql-driver/CHANGELOG.md index f825cbff11d82..66cf081b79f40 100644 --- a/packages/cubejs-ksql-driver/CHANGELOG.md +++ b/packages/cubejs-ksql-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/ksql-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/ksql-driver diff --git a/packages/cubejs-ksql-driver/package.json b/packages/cubejs-ksql-driver/package.json index 9dfd476d4329a..66d4c9fea3a41 100644 --- a/packages/cubejs-ksql-driver/package.json +++ b/packages/cubejs-ksql-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/ksql-driver", "description": "Cube.js ksql database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -25,9 +25,9 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "async-mutex": "0.3.2", "axios": "^1.8.3", "kafkajs": "^2.2.3", @@ -41,7 +41,7 @@ "extends": "../cubejs-linter" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "typescript": "~5.2.2" } } diff --git a/packages/cubejs-linter/CHANGELOG.md b/packages/cubejs-linter/CHANGELOG.md index 13ca0c663b6e0..426bb281b5c47 100644 --- a/packages/cubejs-linter/CHANGELOG.md +++ b/packages/cubejs-linter/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/linter + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/linter diff --git a/packages/cubejs-linter/package.json b/packages/cubejs-linter/package.json index 5d7510ee7fa0a..47164d43e151f 100644 --- a/packages/cubejs-linter/package.json +++ b/packages/cubejs-linter/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/linter", "description": "Cube.js ESLint (virtual package) for linting code", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", diff --git a/packages/cubejs-materialize-driver/CHANGELOG.md b/packages/cubejs-materialize-driver/CHANGELOG.md index 8dc7a5abf4448..51c9a451a27d0 100644 --- a/packages/cubejs-materialize-driver/CHANGELOG.md +++ b/packages/cubejs-materialize-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/materialize-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/materialize-driver diff --git a/packages/cubejs-materialize-driver/package.json b/packages/cubejs-materialize-driver/package.json index bc2ae511566fd..ed12080c11bc2 100644 --- a/packages/cubejs-materialize-driver/package.json +++ b/packages/cubejs-materialize-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/materialize-driver", "description": "Cube.js Materialize database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,17 +27,17 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/postgres-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/postgres-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@types/pg": "^8.6.0", "pg": "^8.6.0", "semver": "^7.6.3" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing": "1.3.83", "typescript": "~5.2.2" }, "publishConfig": { diff --git a/packages/cubejs-mongobi-driver/CHANGELOG.md b/packages/cubejs-mongobi-driver/CHANGELOG.md index ea6a7fdf528b4..fa1daa6a8f07f 100644 --- a/packages/cubejs-mongobi-driver/CHANGELOG.md +++ b/packages/cubejs-mongobi-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/mongobi-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/mongobi-driver diff --git a/packages/cubejs-mongobi-driver/package.json b/packages/cubejs-mongobi-driver/package.json index 7f2d4e44f36b9..af8773f0ea045 100644 --- a/packages/cubejs-mongobi-driver/package.json +++ b/packages/cubejs-mongobi-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/mongobi-driver", "description": "Cube.js MongoBI driver", "author": "krunalsabnis@gmail.com", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,8 +27,8 @@ "integration:mongobi": "jest dist/test" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@types/node": "^20", "generic-pool": "^3.9.0", "moment": "^2.29.1", @@ -39,7 +39,7 @@ "access": "public" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "testcontainers": "^10.28.0", "typescript": "~5.2.2" }, diff --git a/packages/cubejs-mssql-driver/CHANGELOG.md b/packages/cubejs-mssql-driver/CHANGELOG.md index 0584936950422..586d17ec5dc2d 100644 --- a/packages/cubejs-mssql-driver/CHANGELOG.md +++ b/packages/cubejs-mssql-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/mssql-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/mssql-driver diff --git a/packages/cubejs-mssql-driver/package.json b/packages/cubejs-mssql-driver/package.json index f968ed2b95b09..ff3c1febbaeea 100644 --- a/packages/cubejs-mssql-driver/package.json +++ b/packages/cubejs-mssql-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/mssql-driver", "description": "Cube.js MS SQL database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -25,8 +25,8 @@ "lint:fix": "eslint --fix src/* --ext .ts,.js" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "mssql": "^11.0.1" }, "devDependencies": { diff --git a/packages/cubejs-mysql-aurora-serverless-driver/CHANGELOG.md b/packages/cubejs-mysql-aurora-serverless-driver/CHANGELOG.md index e4239a13e369e..2ab8d79763494 100644 --- a/packages/cubejs-mysql-aurora-serverless-driver/CHANGELOG.md +++ b/packages/cubejs-mysql-aurora-serverless-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/mysql-aurora-serverless-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/mysql-aurora-serverless-driver diff --git a/packages/cubejs-mysql-aurora-serverless-driver/package.json b/packages/cubejs-mysql-aurora-serverless-driver/package.json index d81f5864e516b..45698d9d38533 100644 --- a/packages/cubejs-mysql-aurora-serverless-driver/package.json +++ b/packages/cubejs-mysql-aurora-serverless-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/mysql-aurora-serverless-driver", "description": "Cube.js Aurora Serverless Mysql database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -21,14 +21,14 @@ "lint": "eslint driver/*.js test/*.js" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@types/mysql": "^2.15.15", "aws-sdk": "^2.787.0", "data-api-client": "^1.1.0" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/data-api-client": "^1.2.1", "@types/jest": "^29", "jest": "^29", diff --git a/packages/cubejs-mysql-driver/CHANGELOG.md b/packages/cubejs-mysql-driver/CHANGELOG.md index 230ea4ffb5df3..c118b7b89b18e 100644 --- a/packages/cubejs-mysql-driver/CHANGELOG.md +++ b/packages/cubejs-mysql-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/mysql-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/mysql-driver diff --git a/packages/cubejs-mysql-driver/package.json b/packages/cubejs-mysql-driver/package.json index 8c49b93a8f45b..0cf55d58ab751 100644 --- a/packages/cubejs-mysql-driver/package.json +++ b/packages/cubejs-mysql-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/mysql-driver", "description": "Cube.js Mysql database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,14 +27,14 @@ "lint:fix": "eslint --fix src/* test/* --ext .ts,.js" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "generic-pool": "^3.9.0", "mysql": "^2.18.1" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "@types/jest": "^29", "@types/mysql": "^2.15.21", "jest": "^29", diff --git a/packages/cubejs-oracle-driver/CHANGELOG.md b/packages/cubejs-oracle-driver/CHANGELOG.md index 9bd267acd92f6..df13612e43945 100644 --- a/packages/cubejs-oracle-driver/CHANGELOG.md +++ b/packages/cubejs-oracle-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/oracle-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/oracle-driver diff --git a/packages/cubejs-oracle-driver/package.json b/packages/cubejs-oracle-driver/package.json index d02f6ea7102bd..f0dca9314431f 100644 --- a/packages/cubejs-oracle-driver/package.json +++ b/packages/cubejs-oracle-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/oracle-driver", "description": "Cube.js oracle database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -13,7 +13,7 @@ }, "main": "driver/OracleDriver.js", "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", "ramda": "^0.27.0" }, "optionalDependencies": { diff --git a/packages/cubejs-pinot-driver/CHANGELOG.md b/packages/cubejs-pinot-driver/CHANGELOG.md index c023374e91db7..1a298ccd3a246 100644 --- a/packages/cubejs-pinot-driver/CHANGELOG.md +++ b/packages/cubejs-pinot-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/pinot-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/pinot-driver diff --git a/packages/cubejs-pinot-driver/package.json b/packages/cubejs-pinot-driver/package.json index e1d30b3f34f40..37d8f88eaf018 100644 --- a/packages/cubejs-pinot-driver/package.json +++ b/packages/cubejs-pinot-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/pinot-driver", "description": "Cube.js Pinot database driver", "author": "Julian Ronsse, InTheMemory, Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,9 +27,9 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "node-fetch": "^2.6.1", "ramda": "^0.27.2", "sqlstring": "^2.3.3" @@ -39,7 +39,7 @@ "access": "public" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "jest": "^29", "should": "^13.2.3", diff --git a/packages/cubejs-playground/CHANGELOG.md b/packages/cubejs-playground/CHANGELOG.md index a0bd53a563d6f..61965368f5cbb 100644 --- a/packages/cubejs-playground/CHANGELOG.md +++ b/packages/cubejs-playground/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-client/playground + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-client/playground diff --git a/packages/cubejs-playground/package.json b/packages/cubejs-playground/package.json index 6d20fb9d26f81..c0fb2282250c5 100644 --- a/packages/cubejs-playground/package.json +++ b/packages/cubejs-playground/package.json @@ -1,7 +1,7 @@ { "name": "@cubejs-client/playground", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "engines": {}, "repository": { "type": "git", @@ -69,8 +69,8 @@ "@ant-design/compatible": "^1.0.1", "@ant-design/icons": "^5.3.5", "@cube-dev/ui-kit": "0.52.3", - "@cubejs-client/core": "1.3.82", - "@cubejs-client/react": "1.3.82", + "@cubejs-client/core": "1.3.83", + "@cubejs-client/react": "1.3.83", "@types/flexsearch": "^0.7.3", "@types/node": "^20", "@types/react": "^18.3.4", diff --git a/packages/cubejs-postgres-driver/CHANGELOG.md b/packages/cubejs-postgres-driver/CHANGELOG.md index dbc8e8fffb7b9..6863619b6086f 100644 --- a/packages/cubejs-postgres-driver/CHANGELOG.md +++ b/packages/cubejs-postgres-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/postgres-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/postgres-driver diff --git a/packages/cubejs-postgres-driver/package.json b/packages/cubejs-postgres-driver/package.json index 53e60374b04ab..c664685cd191d 100644 --- a/packages/cubejs-postgres-driver/package.json +++ b/packages/cubejs-postgres-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/postgres-driver", "description": "Cube.js Postgres database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,8 +27,8 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@types/pg": "^8.6.0", "@types/pg-query-stream": "^1.0.3", "moment": "^2.24.0", @@ -37,8 +37,8 @@ }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "testcontainers": "^10.28.0", "typescript": "~5.2.2" }, diff --git a/packages/cubejs-prestodb-driver/CHANGELOG.md b/packages/cubejs-prestodb-driver/CHANGELOG.md index 27739aa404271..52aaa12415b60 100644 --- a/packages/cubejs-prestodb-driver/CHANGELOG.md +++ b/packages/cubejs-prestodb-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/prestodb-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/prestodb-driver diff --git a/packages/cubejs-prestodb-driver/package.json b/packages/cubejs-prestodb-driver/package.json index bde15f9a7c5c9..ec28e6ca2205e 100644 --- a/packages/cubejs-prestodb-driver/package.json +++ b/packages/cubejs-prestodb-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/prestodb-driver", "description": "Cube.js Presto database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,8 +27,8 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "presto-client": "^1.1.0", "ramda": "^0.27.0", "sqlstring": "^2.3.1" @@ -38,7 +38,7 @@ "access": "public" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "jest": "^29", "should": "^13.2.3", diff --git a/packages/cubejs-query-orchestrator/CHANGELOG.md b/packages/cubejs-query-orchestrator/CHANGELOG.md index fcbe0b0391b37..960006f9c753a 100644 --- a/packages/cubejs-query-orchestrator/CHANGELOG.md +++ b/packages/cubejs-query-orchestrator/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/query-orchestrator diff --git a/packages/cubejs-query-orchestrator/package.json b/packages/cubejs-query-orchestrator/package.json index 588d7e5f4783d..1b56abab31fda 100644 --- a/packages/cubejs-query-orchestrator/package.json +++ b/packages/cubejs-query-orchestrator/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/query-orchestrator", "description": "Cube.js Query Orchestrator and Cache", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -29,15 +29,15 @@ "dist/src/*" ], "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/cubestore-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/cubestore-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "csv-write-stream": "^2.0.0", "lru-cache": "^11.1.0", "ramda": "^0.27.2" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "@types/node": "^20", "@types/ramda": "^0.27.32", diff --git a/packages/cubejs-questdb-driver/CHANGELOG.md b/packages/cubejs-questdb-driver/CHANGELOG.md index 8cf0d342be34e..bd69247938b61 100644 --- a/packages/cubejs-questdb-driver/CHANGELOG.md +++ b/packages/cubejs-questdb-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/questdb-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/questdb-driver diff --git a/packages/cubejs-questdb-driver/package.json b/packages/cubejs-questdb-driver/package.json index d0292d8e5b285..61e94ab828525 100644 --- a/packages/cubejs-questdb-driver/package.json +++ b/packages/cubejs-questdb-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/questdb-driver", "description": "Cube.js QuestDB database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,9 +27,9 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@types/pg": "^8.6.0", "moment": "^2.24.0", "pg": "^8.7.0", @@ -37,8 +37,8 @@ }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "testcontainers": "^10.28.0", "typescript": "~5.2.2" }, diff --git a/packages/cubejs-redshift-driver/CHANGELOG.md b/packages/cubejs-redshift-driver/CHANGELOG.md index 63c7c70fd23ea..690ffc648dba7 100644 --- a/packages/cubejs-redshift-driver/CHANGELOG.md +++ b/packages/cubejs-redshift-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/redshift-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/redshift-driver diff --git a/packages/cubejs-redshift-driver/package.json b/packages/cubejs-redshift-driver/package.json index bb54f1eedf080..36fb679a9213e 100644 --- a/packages/cubejs-redshift-driver/package.json +++ b/packages/cubejs-redshift-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/redshift-driver", "description": "Cube.js Redshift database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -25,13 +25,13 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/postgres-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82" + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/postgres-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "typescript": "~5.2.2" }, "publishConfig": { diff --git a/packages/cubejs-schema-compiler/CHANGELOG.md b/packages/cubejs-schema-compiler/CHANGELOG.md index acfe83bfd771b..c9ba77a045a64 100644 --- a/packages/cubejs-schema-compiler/CHANGELOG.md +++ b/packages/cubejs-schema-compiler/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Bug Fixes + +- **tesseract:** Fix member name case conversion ([#10064](https://github.com/cube-js/cube/issues/10064)) ([6523074](https://github.com/cube-js/cube/commit/6523074f3e5d1c3537efb3fd1002eb5d79772d85)) + +### Features + +- **schema-compiler:** Support time series queries in MySQL dialect in Tesseract ([#10078](https://github.com/cube-js/cube/issues/10078)) ([765cd77](https://github.com/cube-js/cube/commit/765cd7787e2b62abebd1bbdd81bb85567cbff799)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) ### Bug Fixes diff --git a/packages/cubejs-schema-compiler/package.json b/packages/cubejs-schema-compiler/package.json index ea4cfebc59566..45aa0c5a707b9 100644 --- a/packages/cubejs-schema-compiler/package.json +++ b/packages/cubejs-schema-compiler/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/schema-compiler", "description": "Cube schema compiler", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -40,8 +40,8 @@ "@babel/standalone": "^7.24", "@babel/traverse": "^7.24", "@babel/types": "^7.24", - "@cubejs-backend/native": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/native": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "antlr4": "^4.13.2", "camelcase": "^6.2.0", "cron-parser": "^4.9.0", @@ -60,8 +60,8 @@ }, "devDependencies": { "@clickhouse/client": "^1.12.0", - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/query-orchestrator": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/query-orchestrator": "1.3.83", "@types/babel__code-frame": "^7.0.6", "@types/babel__generator": "^7.6.8", "@types/babel__traverse": "^7.20.5", diff --git a/packages/cubejs-server-core/CHANGELOG.md b/packages/cubejs-server-core/CHANGELOG.md index 5f88b8b79a0a3..9c8393be1c0bb 100644 --- a/packages/cubejs-server-core/CHANGELOG.md +++ b/packages/cubejs-server-core/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/server-core diff --git a/packages/cubejs-server-core/package.json b/packages/cubejs-server-core/package.json index 69dfd440fc368..dd3178afea1c1 100644 --- a/packages/cubejs-server-core/package.json +++ b/packages/cubejs-server-core/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/server-core", "description": "Cube.js base component to wire all backend components together", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -29,14 +29,14 @@ "unit": "jest --runInBand --forceExit --coverage dist/test" }, "dependencies": { - "@cubejs-backend/api-gateway": "1.3.82", - "@cubejs-backend/cloud": "1.3.82", + "@cubejs-backend/api-gateway": "1.3.83", + "@cubejs-backend/cloud": "1.3.83", "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/native": "1.3.82", - "@cubejs-backend/query-orchestrator": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", - "@cubejs-backend/templates": "1.3.82", + "@cubejs-backend/native": "1.3.83", + "@cubejs-backend/query-orchestrator": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", + "@cubejs-backend/templates": "1.3.83", "codesandbox-import-utils": "^2.1.12", "cross-spawn": "^7.0.1", "fs-extra": "^8.1.0", @@ -59,9 +59,9 @@ "ws": "^7.5.3" }, "devDependencies": { - "@cubejs-backend/cubestore-driver": "1.3.82", - "@cubejs-backend/linter": "1.3.82", - "@cubejs-client/playground": "1.3.82", + "@cubejs-backend/cubestore-driver": "1.3.83", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-client/playground": "1.3.83", "@types/cross-spawn": "^6.0.2", "@types/express": "^4.17.21", "@types/fs-extra": "^9.0.8", diff --git a/packages/cubejs-server/CHANGELOG.md b/packages/cubejs-server/CHANGELOG.md index 6163d1cfbb1b7..70e07b227a1c6 100644 --- a/packages/cubejs-server/CHANGELOG.md +++ b/packages/cubejs-server/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/server + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/server diff --git a/packages/cubejs-server/package.json b/packages/cubejs-server/package.json index 8a717c89e85e4..66ccebab8d1e9 100644 --- a/packages/cubejs-server/package.json +++ b/packages/cubejs-server/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/server", "description": "Cube.js all-in-one server", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "types": "index.d.ts", "repository": { "type": "git", @@ -40,11 +40,11 @@ "jest:shapshot": "jest --updateSnapshot test" }, "dependencies": { - "@cubejs-backend/cubestore-driver": "1.3.82", + "@cubejs-backend/cubestore-driver": "1.3.83", "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/native": "1.3.82", - "@cubejs-backend/server-core": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/native": "1.3.83", + "@cubejs-backend/server-core": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@oclif/color": "^1.0.0", "@oclif/command": "^1.8.13", "@oclif/config": "^1.18.2", @@ -61,8 +61,8 @@ "ws": "^7.1.2" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/query-orchestrator": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/query-orchestrator": "1.3.83", "@oclif/dev-cli": "^1.23.1", "@types/body-parser": "^1.19.0", "@types/cors": "^2.8.8", diff --git a/packages/cubejs-snowflake-driver/CHANGELOG.md b/packages/cubejs-snowflake-driver/CHANGELOG.md index 2409707d1f449..bd76200312fad 100644 --- a/packages/cubejs-snowflake-driver/CHANGELOG.md +++ b/packages/cubejs-snowflake-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/snowflake-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/snowflake-driver diff --git a/packages/cubejs-snowflake-driver/package.json b/packages/cubejs-snowflake-driver/package.json index cb9d35a4def29..8ae44d72cbba3 100644 --- a/packages/cubejs-snowflake-driver/package.json +++ b/packages/cubejs-snowflake-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/snowflake-driver", "description": "Cube.js Snowflake database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -26,8 +26,8 @@ }, "dependencies": { "@aws-sdk/client-s3": "^3.726.0", - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "date-fns-timezone": "^0.1.4", "snowflake-sdk": "^2.2.0" }, @@ -39,7 +39,7 @@ "extends": "../cubejs-linter" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "typescript": "~5.2.2" } } diff --git a/packages/cubejs-sqlite-driver/CHANGELOG.md b/packages/cubejs-sqlite-driver/CHANGELOG.md index b8fc7069baa3c..33b38ffa4eec5 100644 --- a/packages/cubejs-sqlite-driver/CHANGELOG.md +++ b/packages/cubejs-sqlite-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/sqlite-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/sqlite-driver diff --git a/packages/cubejs-sqlite-driver/package.json b/packages/cubejs-sqlite-driver/package.json index 5d5f98bb09533..9e3f1b65dcae1 100644 --- a/packages/cubejs-sqlite-driver/package.json +++ b/packages/cubejs-sqlite-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/sqlite-driver", "description": "Cube.js Sqlite database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -18,13 +18,13 @@ "unit": "jest" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "sqlite3": "^5.1.7" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "jest": "^29" }, "publishConfig": { diff --git a/packages/cubejs-templates/CHANGELOG.md b/packages/cubejs-templates/CHANGELOG.md index eee2980ac7938..20c6f409fda7d 100644 --- a/packages/cubejs-templates/CHANGELOG.md +++ b/packages/cubejs-templates/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/templates + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/templates diff --git a/packages/cubejs-templates/package.json b/packages/cubejs-templates/package.json index 10f9bf0ca3433..eb9d0a62205ba 100644 --- a/packages/cubejs-templates/package.json +++ b/packages/cubejs-templates/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/templates", - "version": "1.3.82", + "version": "1.3.83", "description": "Cube.js Templates helpers", "author": "Cube Dev, Inc.", "license": "Apache-2.0", @@ -26,7 +26,7 @@ "extends": "../cubejs-linter" }, "dependencies": { - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/shared": "1.3.83", "cross-spawn": "^7.0.3", "decompress": "^4.2.1", "decompress-targz": "^4.1.1", @@ -36,7 +36,7 @@ "source-map-support": "^0.5.19" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "typescript": "~5.2.2" } } diff --git a/packages/cubejs-testing-drivers/CHANGELOG.md b/packages/cubejs-testing-drivers/CHANGELOG.md index edfe7018c5b9f..981b1710f59b6 100644 --- a/packages/cubejs-testing-drivers/CHANGELOG.md +++ b/packages/cubejs-testing-drivers/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **schema-compiler:** Support time series queries in MySQL dialect in Tesseract ([#10078](https://github.com/cube-js/cube/issues/10078)) ([765cd77](https://github.com/cube-js/cube/commit/765cd7787e2b62abebd1bbdd81bb85567cbff799)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/testing-drivers diff --git a/packages/cubejs-testing-drivers/package.json b/packages/cubejs-testing-drivers/package.json index b8bc31ed6b381..e3d4bec59bbae 100644 --- a/packages/cubejs-testing-drivers/package.json +++ b/packages/cubejs-testing-drivers/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/testing-drivers", - "version": "1.3.82", + "version": "1.3.83", "description": "Cube.js drivers test suite", "author": "Cube Dev, Inc.", "license": "MIT", @@ -67,24 +67,24 @@ "dist/src" ], "dependencies": { - "@cubejs-backend/athena-driver": "1.3.82", - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/bigquery-driver": "1.3.82", - "@cubejs-backend/clickhouse-driver": "1.3.82", - "@cubejs-backend/cubestore-driver": "1.3.82", - "@cubejs-backend/databricks-jdbc-driver": "1.3.82", + "@cubejs-backend/athena-driver": "1.3.83", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/bigquery-driver": "1.3.83", + "@cubejs-backend/clickhouse-driver": "1.3.83", + "@cubejs-backend/cubestore-driver": "1.3.83", + "@cubejs-backend/databricks-jdbc-driver": "1.3.83", "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/mssql-driver": "1.3.82", - "@cubejs-backend/mysql-driver": "1.3.82", - "@cubejs-backend/postgres-driver": "1.3.82", - "@cubejs-backend/query-orchestrator": "1.3.82", - "@cubejs-backend/server-core": "1.3.82", - "@cubejs-backend/shared": "1.3.82", - "@cubejs-backend/snowflake-driver": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", - "@cubejs-client/core": "1.3.82", - "@cubejs-client/ws-transport": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/mssql-driver": "1.3.83", + "@cubejs-backend/mysql-driver": "1.3.83", + "@cubejs-backend/postgres-driver": "1.3.83", + "@cubejs-backend/query-orchestrator": "1.3.83", + "@cubejs-backend/server-core": "1.3.83", + "@cubejs-backend/shared": "1.3.83", + "@cubejs-backend/snowflake-driver": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", + "@cubejs-client/core": "1.3.83", + "@cubejs-client/ws-transport": "1.3.83", "@jest/globals": "^29", "@types/jest": "^29", "@types/node": "^20", diff --git a/packages/cubejs-testing-shared/CHANGELOG.md b/packages/cubejs-testing-shared/CHANGELOG.md index 7b4abad97a013..e08f5f96e53ff 100644 --- a/packages/cubejs-testing-shared/CHANGELOG.md +++ b/packages/cubejs-testing-shared/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/testing-shared + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/testing-shared diff --git a/packages/cubejs-testing-shared/package.json b/packages/cubejs-testing-shared/package.json index ddbb031808914..035591422371b 100644 --- a/packages/cubejs-testing-shared/package.json +++ b/packages/cubejs-testing-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/testing-shared", - "version": "1.3.82", + "version": "1.3.83", "description": "Cube.js Testing Helpers", "author": "Cube Dev, Inc.", "license": "Apache-2.0", @@ -21,16 +21,16 @@ ], "dependencies": { "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/query-orchestrator": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/query-orchestrator": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "@testcontainers/kafka": "~10.28.0", "dedent": "^0.7.0", "node-fetch": "^2.6.7", "testcontainers": "^10.28.0" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@jest/globals": "^29", "@types/dedent": "^0.7.0", "@types/jest": "^29", diff --git a/packages/cubejs-testing/CHANGELOG.md b/packages/cubejs-testing/CHANGELOG.md index 9bcdec577b763..e8cfb0ac52f55 100644 --- a/packages/cubejs-testing/CHANGELOG.md +++ b/packages/cubejs-testing/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/testing + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/testing diff --git a/packages/cubejs-testing/package.json b/packages/cubejs-testing/package.json index 4819b0642b233..2e95ee5e1d7c8 100644 --- a/packages/cubejs-testing/package.json +++ b/packages/cubejs-testing/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/testing", - "version": "1.3.82", + "version": "1.3.83", "description": "Cube.js e2e tests", "author": "Cube Dev, Inc.", "license": "Apache-2.0", @@ -94,15 +94,15 @@ "birdbox-fixtures" ], "dependencies": { - "@cubejs-backend/cubestore-driver": "1.3.82", + "@cubejs-backend/cubestore-driver": "1.3.83", "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/ksql-driver": "1.3.82", - "@cubejs-backend/postgres-driver": "1.3.82", - "@cubejs-backend/query-orchestrator": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", - "@cubejs-client/ws-transport": "1.3.82", + "@cubejs-backend/ksql-driver": "1.3.83", + "@cubejs-backend/postgres-driver": "1.3.83", + "@cubejs-backend/query-orchestrator": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", + "@cubejs-client/ws-transport": "1.3.83", "dedent": "^0.7.0", "fs-extra": "^8.1.0", "http-proxy": "^1.18.1", @@ -113,8 +113,8 @@ }, "devDependencies": { "@4tw/cypress-drag-drop": "^1.6.0", - "@cubejs-backend/linter": "1.3.82", - "@cubejs-client/core": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-client/core": "1.3.83", "@jest/globals": "^29", "@types/dedent": "^0.7.0", "@types/http-proxy": "^1.17.5", diff --git a/packages/cubejs-trino-driver/CHANGELOG.md b/packages/cubejs-trino-driver/CHANGELOG.md index 7e4e814e241eb..8e8bd211371b7 100644 --- a/packages/cubejs-trino-driver/CHANGELOG.md +++ b/packages/cubejs-trino-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/trino-driver + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/trino-driver diff --git a/packages/cubejs-trino-driver/package.json b/packages/cubejs-trino-driver/package.json index b534041a78176..f5d0d307746f7 100644 --- a/packages/cubejs-trino-driver/package.json +++ b/packages/cubejs-trino-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/trino-driver", "description": "Cube.js Trino database driver", "author": "Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -27,10 +27,10 @@ "lint:fix": "eslint --fix src/* --ext .ts" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/prestodb-driver": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/prestodb-driver": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", + "@cubejs-backend/shared": "1.3.83", "node-fetch": "^2.6.1", "presto-client": "^1.1.0", "sqlstring": "^2.3.1" @@ -40,7 +40,7 @@ "access": "public" }, "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^29", "jest": "^29", "testcontainers": "^10.28.0", diff --git a/packages/cubejs-vertica-driver/CHANGELOG.md b/packages/cubejs-vertica-driver/CHANGELOG.md index 19a572690c165..4670b8186c4af 100644 --- a/packages/cubejs-vertica-driver/CHANGELOG.md +++ b/packages/cubejs-vertica-driver/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube.js/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/vertica-driver + ## [1.3.82](https://github.com/cube-js/cube.js/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/vertica-driver diff --git a/packages/cubejs-vertica-driver/package.json b/packages/cubejs-vertica-driver/package.json index 7ba08599b3b6b..b1f35fdb38a8f 100644 --- a/packages/cubejs-vertica-driver/package.json +++ b/packages/cubejs-vertica-driver/package.json @@ -2,7 +2,7 @@ "name": "@cubejs-backend/vertica-driver", "description": "Cube.js Vertica database driver", "author": "Eduard Karacharov, Tim Brown, Cube Dev, Inc.", - "version": "1.3.82", + "version": "1.3.83", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.js.git", @@ -19,15 +19,15 @@ "lint:fix": "eslint --fix **/*.js" }, "dependencies": { - "@cubejs-backend/base-driver": "1.3.82", - "@cubejs-backend/query-orchestrator": "1.3.82", - "@cubejs-backend/schema-compiler": "1.3.82", + "@cubejs-backend/base-driver": "1.3.83", + "@cubejs-backend/query-orchestrator": "1.3.83", + "@cubejs-backend/schema-compiler": "1.3.83", "vertica-nodejs": "^1.0.3" }, "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", - "@cubejs-backend/testing-shared": "1.3.82", + "@cubejs-backend/linter": "1.3.83", + "@cubejs-backend/testing-shared": "1.3.83", "@types/jest": "^29", "jest": "^29", "testcontainers": "^10.28.0" diff --git a/rust/cubesql/CHANGELOG.md b/rust/cubesql/CHANGELOG.md index ed221e6b12fd7..f7ac8a16e1a13 100644 --- a/rust/cubesql/CHANGELOG.md +++ b/rust/cubesql/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +### Features + +- **api-gateway:** Introduce cache mode option for `/cubesql` API ([#9972](https://github.com/cube-js/cube/issues/9972)) ([7d4ecdc](https://github.com/cube-js/cube/commit/7d4ecdccdf75dbe8c764cf54ad48a25fa4de9443)) +- **cubesql:** Push down `CAST(... AS DATE)` to CubeScan filters ([#10081](https://github.com/cube-js/cube/issues/10081)) ([61a94ef](https://github.com/cube-js/cube/commit/61a94ef9086d79bfcb5a370d2684f9b20b100022)) + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) ### Features diff --git a/rust/cubesql/package.json b/rust/cubesql/package.json index 9956d161b1e81..778f48ff76400 100644 --- a/rust/cubesql/package.json +++ b/rust/cubesql/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/cubesql", - "version": "1.3.82", + "version": "1.3.83", "description": "SQL API for Cube as proxy over MySQL protocol.", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" diff --git a/rust/cubestore/CHANGELOG.md b/rust/cubestore/CHANGELOG.md index 65935e5ba2add..3ce2d1e4a21cd 100644 --- a/rust/cubestore/CHANGELOG.md +++ b/rust/cubestore/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.83](https://github.com/cube-js/cube/compare/v1.3.82...v1.3.83) (2025-10-24) + +**Note:** Version bump only for package @cubejs-backend/cubestore + ## [1.3.82](https://github.com/cube-js/cube/compare/v1.3.81...v1.3.82) (2025-10-21) **Note:** Version bump only for package @cubejs-backend/cubestore diff --git a/rust/cubestore/package.json b/rust/cubestore/package.json index 8381cebc0b034..5a1fffe68b658 100644 --- a/rust/cubestore/package.json +++ b/rust/cubestore/package.json @@ -1,6 +1,6 @@ { "name": "@cubejs-backend/cubestore", - "version": "1.3.82", + "version": "1.3.83", "description": "Cube.js pre-aggregation storage layer.", "main": "dist/src/index.js", "typings": "dist/src/index.d.ts", @@ -27,7 +27,7 @@ "author": "Cube Dev, Inc.", "license": "Apache-2.0", "devDependencies": { - "@cubejs-backend/linter": "1.3.82", + "@cubejs-backend/linter": "1.3.83", "@types/jest": "^27", "@types/node": "^18", "jest": "^27", @@ -37,7 +37,7 @@ "access": "public" }, "dependencies": { - "@cubejs-backend/shared": "1.3.82", + "@cubejs-backend/shared": "1.3.83", "@octokit/core": "^3.2.5", "source-map-support": "^0.5.19" },