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 {