diff --git a/packages/cubejs-testing-drivers/fixtures/_schemas.json b/packages/cubejs-testing-drivers/fixtures/_schemas.json index bfd9e256a1c0c..8dd31a5d58081 100644 --- a/packages/cubejs-testing-drivers/fixtures/_schemas.json +++ b/packages/cubejs-testing-drivers/fixtures/_schemas.json @@ -65,6 +65,7 @@ { "name": "ECommerce", "extends": "Products", + "sqlAlias": "ec", "joins": [ { "name": "Customers", diff --git a/packages/cubejs-testing-drivers/fixtures/clickhouse.json b/packages/cubejs-testing-drivers/fixtures/clickhouse.json index 87f465a1a0cf7..01b0df848281b 100644 --- a/packages/cubejs-testing-drivers/fixtures/clickhouse.json +++ b/packages/cubejs-testing-drivers/fixtures/clickhouse.json @@ -178,6 +178,16 @@ "---------------------------------------", "querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByUnbounded", "querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByTrailing", - "querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading" + "querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading", + + "---------------------------------------", + "SKIPPED SQL API (Need work)", + "---------------------------------------", + "SQL API: Complex Rollup", + "SQL API: Extended nested Rollup over asterisk", + "SQL API: Nested Rollup over asterisk", + "SQL API: Rollup over exprs", + "SQL API: Rollup with aliases", + "SQL API: Simple Rollup" ] } diff --git a/packages/cubejs-testing-drivers/fixtures/mssql.json b/packages/cubejs-testing-drivers/fixtures/mssql.json index d87ad9212b2e0..25cddb041d6a5 100644 --- a/packages/cubejs-testing-drivers/fixtures/mssql.json +++ b/packages/cubejs-testing-drivers/fixtures/mssql.json @@ -149,6 +149,7 @@ "SQL API: Rollup over exprs", "SQL API: Nested Rollup with aliases", "SQL API: Nested Rollup over asterisk", - "SQL API: Extended nested Rollup over asterisk" + "SQL API: Extended nested Rollup over asterisk", + "SQL API: ungrouped pre-agg" ] } diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap index 6f36462839562..f5f5ddf883442 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap @@ -1,5 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`Queries with the @cubejs-backend/athena-driver SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` +Array [ + Object { + "a0": 41, + }, +] +`; + exports[`Queries with the @cubejs-backend/athena-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` Array [ Object { @@ -557,14 +565,6 @@ Array [ exports[`Queries with the @cubejs-backend/athena-driver filtering Customers: contains + dimensions, third 1`] = `Array []`; -exports[`Queries with the @cubejs-backend/athena-driver filtering Products: contains with special chars + dimensions 1`] = ` -Array [ - Object { - "Products.productName": "Logitech di_Novo Edge Keyboard", - }, -] -`; - exports[`Queries with the @cubejs-backend/athena-driver filtering Customers: endsWith filter + dimensions, first 1`] = ` Array [ Object { @@ -2263,6 +2263,14 @@ Array [ exports[`Queries with the @cubejs-backend/athena-driver filtering Products: contains + dimensions + order, third 1`] = `Array []`; +exports[`Queries with the @cubejs-backend/athena-driver filtering Products: contains with special chars + dimensions 1`] = ` +Array [ + Object { + "Products.productName": "Logitech di_Novo Edge Keyboard", + }, +] +`; + exports[`Queries with the @cubejs-backend/athena-driver filtering Products: endsWith filter + dimensions + order, first 1`] = ` Array [ Object { @@ -2500,6 +2508,277 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/athena-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/athena-driver querying BigECommerce: rolling window by 2 day 1`] = ` Array [ Object { @@ -2632,7 +2911,151 @@ Array [ exports[`Queries with the @cubejs-backend/athena-driver querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; -exports[`Queries with the @cubejs-backend/athena-driver querying Customers: dimensions 1`] = ` +exports[`Queries with the @cubejs-backend/athena-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/athena-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/athena-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/athena-driver querying Customers: dimensions + order + total + offset 1`] = ` +Array [ + Object { + "Customers.customerId": "BS-11380", + "Customers.customerName": "Customer 9", + }, +] +`; + +exports[`Queries with the @cubejs-backend/athena-driver querying Customers: dimensions + order 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -2801,151 +3224,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/athena-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/athena-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/athena-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/athena-driver querying Customers: dimensions + order + total + offset 1`] = ` -Array [ - Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", - }, -] -`; - -exports[`Queries with the @cubejs-backend/athena-driver querying Customers: dimensions + order 1`] = ` +exports[`Queries with the @cubejs-backend/athena-driver querying Customers: dimensions + total 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -3114,7 +3393,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/athena-driver querying Customers: dimensions + total 1`] = ` +exports[`Queries with the @cubejs-backend/athena-driver querying Customers: dimensions 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -3392,7 +3671,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions 1`] = ` +exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + limit 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -3544,6 +3823,11 @@ Array [ "ECommerce.sales": "1979.89", "ECommerce.subCategory": "Phones", }, +] +`; + +exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + order + limit + total + offset 1`] = ` +Array [ Object { "ECommerce.category": "Furniture", "ECommerce.city": "Glendale", @@ -3694,351 +3978,166 @@ Array [ "ECommerce.sales": "539.97", "ECommerce.subCategory": "Phones", }, +] +`; + +exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + order + limit + total 1`] = ` +Array [ Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "WB-21850", - "ECommerce.customerName": "Customer 41", + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", "ECommerce.discount": "0.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.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": "4227", - "ECommerce.sales": "45.92", - "ECommerce.subCategory": "Fasteners", + "ECommerce.rowId": "849", + "ECommerce.sales": "48.896", + "ECommerce.subCategory": "Furnishings", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "TB-21175", - "ECommerce.customerName": "Customer 39", + "ECommerce.category": "Office Supplies", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", "ECommerce.discount": "0.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-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": "Detroit", - "ECommerce.customerId": "CA-12775", - "ECommerce.customerName": "Customer 11", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", "ECommerce.discount": "0.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-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": "Technology", + "ECommerce.category": "Office Supplies", "ECommerce.city": "Columbus", - "ECommerce.customerId": "KL-16555", - "ECommerce.customerName": "Customer 27", - "ECommerce.discount": "0.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.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.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.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.customerId": "ML-17755", + "ECommerce.customerName": "Customer 33", "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.0", - "ECommerce.subCategory": "Machines", - }, - Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "New York City", - "ECommerce.customerId": "MM-18280", - "ECommerce.customerName": "Customer 34", - "ECommerce.discount": "0.0", - "ECommerce.orderDate": "2020-06-10T00:00:00.000", - "ECommerce.orderId": "CA-2017-112172", + "ECommerce.orderDate": "2020-06-25T00:00:00.000", + "ECommerce.orderId": "CA-2017-133648", "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.profit": "0.7065", + "ECommerce.profit": "-2.1195", "ECommerce.quantity": "3", - "ECommerce.rowId": "7310", - "ECommerce.sales": "14.13", + "ECommerce.rowId": "1995", + "ECommerce.sales": "11.304", "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.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.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.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", "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.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": "8697", - "ECommerce.sales": "239.976", - "ECommerce.subCategory": "Phones", + "ECommerce.rowId": "2329", + "ECommerce.sales": "14.352", + "ECommerce.subCategory": "Envelopes", }, Object { "ECommerce.category": "Technology", - "ECommerce.city": "Morristown", - "ECommerce.customerId": "GZ-14470", - "ECommerce.customerName": "Customer 20", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", "ECommerce.discount": "0.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.0", - "ECommerce.subCategory": "Machines", + "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": "Technology", + "ECommerce.category": "Office Supplies", "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.0", - "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.customerId": "BM-11650", + "ECommerce.customerName": "Customer 8", + "ECommerce.discount": "0.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": "9473", - "ECommerce.sales": "128.124", - "ECommerce.subCategory": "Chairs", + "ECommerce.rowId": "2595", + "ECommerce.sales": "180.96", + "ECommerce.subCategory": "Envelopes", }, 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.city": "Provo", + "ECommerce.customerId": "AS-10225", + "ECommerce.customerName": "Customer 3", + "ECommerce.discount": "0.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": "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.customerId": "DG-13300", + "ECommerce.customerName": "Customer 16", + "ECommerce.discount": "0.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/athena-driver querying ECommerce: dimensions + order + total + offset 1`] = ` +Array [ Object { "ECommerce.category": "Office Supplies", "ECommerce.city": "Bowling", @@ -4057,7 +4156,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + limit 1`] = ` +exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + order 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -4209,11 +4308,6 @@ Array [ "ECommerce.sales": "1979.89", "ECommerce.subCategory": "Phones", }, -] -`; - -exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + order + limit + total + offset 1`] = ` -Array [ Object { "ECommerce.category": "Furniture", "ECommerce.city": "Glendale", @@ -4285,245 +4379,430 @@ Array [ "ECommerce.productName": "OIC #2 Pencils, Medium Soft", "ECommerce.profit": "1.0904", "ECommerce.quantity": "2", - "ECommerce.rowId": "3448", + "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.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.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.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.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.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.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.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.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.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.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.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": "Omaha", - "ECommerce.customerId": "JO-15550", - "ECommerce.customerName": "Customer 24", - "ECommerce.discount": "0.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.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": "3717", - "ECommerce.sales": "23.55", + "ECommerce.rowId": "6651", + "ECommerce.sales": "45.92", "ECommerce.subCategory": "Fasteners", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Bakersfield", - "ECommerce.customerId": "AW-10840", - "ECommerce.customerName": "Customer 4", - "ECommerce.discount": "0.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.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", "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-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": "Furniture", - "ECommerce.city": "Lafayette", - "ECommerce.customerId": "CS-12355", - "ECommerce.customerName": "Customer 14", - "ECommerce.discount": "0.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.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.0", + "ECommerce.subCategory": "Machines", }, Object { - "ECommerce.category": "Technology", + "ECommerce.category": "Office Supplies", "ECommerce.city": "New York City", - "ECommerce.customerId": "AH-10465", - "ECommerce.customerName": "Customer 1", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", "ECommerce.discount": "0.0", - "ECommerce.orderDate": "2020-05-14T00:00:00.000", - "ECommerce.orderId": "CA-2017-115546", - "ECommerce.productName": "Google Nexus 7", - "ECommerce.profit": "134.9925", + "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": "4161", - "ECommerce.sales": "539.97", - "ECommerce.subCategory": "Phones", - }, -] -`; - -exports[`Queries with the @cubejs-backend/athena-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.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.rowId": "7310", + "ECommerce.sales": "14.13", + "ECommerce.subCategory": "Fasteners", }, Object { "ECommerce.category": "Furniture", - "ECommerce.city": "Lorain", - "ECommerce.customerId": "GA-14725", - "ECommerce.customerName": "Customer 19", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", "ECommerce.discount": "0.2", - "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-107503", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": "8.5568", - "ECommerce.quantity": "4", - "ECommerce.rowId": "849", - "ECommerce.sales": "48.896", + "ECommerce.profit": "6.4176", + "ECommerce.quantity": "3", + "ECommerce.rowId": "7425", + "ECommerce.sales": "36.672", "ECommerce.subCategory": "Furnishings", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Olympia", - "ECommerce.customerId": "PF-19165", - "ECommerce.customerName": "Customer 36", + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", "ECommerce.discount": "0.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", + "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": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", "ECommerce.discount": "0.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.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": "Columbus", - "ECommerce.customerId": "ML-17755", - "ECommerce.customerName": "Customer 33", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", "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.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": "Office Supplies", + "ECommerce.category": "Technology", "ECommerce.city": "Columbus", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", "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.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": "2329", - "ECommerce.sales": "14.352", - "ECommerce.subCategory": "Envelopes", + "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.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.0", + "ECommerce.subCategory": "Machines", }, Object { "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "DB-13405", - "ECommerce.customerName": "Customer 15", - "ECommerce.discount": "0.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.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.0", + "ECommerce.subCategory": "Machines", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "BM-11650", - "ECommerce.customerName": "Customer 8", - "ECommerce.discount": "0.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.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": "2595", - "ECommerce.sales": "180.96", - "ECommerce.subCategory": "Envelopes", + "ECommerce.rowId": "9473", + "ECommerce.sales": "128.124", + "ECommerce.subCategory": "Chairs", }, Object { "ECommerce.category": "Furniture", - "ECommerce.city": "Provo", - "ECommerce.customerId": "AS-10225", - "ECommerce.customerName": "Customer 3", - "ECommerce.discount": "0.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.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.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.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", }, -] -`; - -exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + order + total + offset 1`] = ` -Array [ Object { "ECommerce.category": "Office Supplies", "ECommerce.city": "Bowling", @@ -4542,7 +4821,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + order 1`] = ` +exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + total 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -5207,7 +5486,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions + total 1`] = ` +exports[`Queries with the @cubejs-backend/athena-driver querying ECommerce: dimensions 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -6902,3 +7181,226 @@ Array [ }, ] `; + +exports[`Queries with the @cubejs-backend/athena-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/athena-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap index 88e994b36b41b..b38c8832e4576 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap @@ -1,804 +1,2410 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "44", - "orderDate": null, - "orderId": null, - "rowId": null, + "date": null, + "order": null, + "row": null, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 523, + "date": null, + "order": null, + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-145142", - "rowId": 523, + "date": null, + "order": "CA-2017-145142", + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, + "date": 2020-01-23T00:00:00.000Z, + "order": "CA-2017-145142", + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 849, + "date": null, + "order": null, + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-107503", - "rowId": 849, + "date": null, + "order": "CA-2017-107503", + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, + "date": 2020-01-01T00:00:00.000Z, + "order": "CA-2017-107503", + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 1013, + "date": null, + "order": null, + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-118437", - "rowId": 1013, + "date": null, + "order": "CA-2017-118437", + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, + "date": 2020-06-17T00:00:00.000Z, + "order": "CA-2017-118437", + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 1494, + "date": null, + "order": null, + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-139661", - "rowId": 1494, + "date": null, + "order": "CA-2017-139661", + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, + "date": 2020-10-30T00:00:00.000Z, + "order": "CA-2017-139661", + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 1995, + "date": null, + "order": null, + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-133648", - "rowId": 1995, + "date": null, + "order": "CA-2017-133648", + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, + "date": 2020-06-25T00:00:00.000Z, + "order": "CA-2017-133648", + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2329, + "date": null, + "order": null, + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-138422", - "rowId": 2329, + "date": null, + "order": "CA-2017-138422", + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, + "date": 2020-09-23T00:00:00.000Z, + "order": "CA-2017-138422", + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2455, + "date": null, + "order": null, + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-140949", - "rowId": 2455, + "date": null, + "order": "CA-2017-140949", + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, + "date": 2020-03-17T00:00:00.000Z, + "order": "CA-2017-140949", + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2595, + "date": null, + "order": null, + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-149048", - "rowId": 2595, + "date": null, + "order": "CA-2017-149048", + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, + "date": 2020-05-13T00:00:00.000Z, + "order": "CA-2017-149048", + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2655, + "date": null, + "order": null, + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-112515", - "rowId": 2655, + "date": null, + "order": "CA-2017-112515", + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, + "date": 2020-09-17T00:00:00.000Z, + "order": "CA-2017-112515", + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2661, + "date": null, + "order": null, + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-123372", - "rowId": 2661, + "date": null, + "order": "CA-2017-123372", + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, + "date": 2020-11-28T00:00:00.000Z, + "order": "CA-2017-123372", + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2952, + "date": null, + "order": null, + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-134915", - "rowId": 2952, + "date": null, + "order": "CA-2017-134915", + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, + "date": 2020-11-12T00:00:00.000Z, + "order": "CA-2017-134915", + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3059, + "date": null, + "order": null, + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-131492", - "rowId": 3059, + "date": null, + "order": "CA-2017-131492", + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, + "date": 2020-10-19T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3060, + "date": null, + "order": null, + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-131492", - "rowId": 3060, + "date": null, + "order": "CA-2017-131492", + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, + "date": 2020-10-19T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3083, + "date": null, + "order": null, + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "US-2017-132297", - "rowId": 3083, + "date": null, + "order": "US-2017-132297", + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, + "date": 2020-05-27T00:00:00.000Z, + "order": "US-2017-132297", + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3448, + "date": null, + "order": null, + "row": 3448, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-102554", - "rowId": 3448, + "date": null, + "order": "CA-2017-102554", + "row": 3448, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, + "date": 2020-06-11T00:00:00.000Z, + "order": "CA-2017-102554", + "row": 3448, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3717, + "date": null, + "order": null, + "row": 3717, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-144568", - "rowId": 3717, + "date": null, + "order": "CA-2017-144568", + "row": 3717, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, + "date": 2020-05-29T00:00:00.000Z, + "order": "CA-2017-144568", + "row": 3717, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3934, + "date": null, + "order": null, + "row": 3934, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-123001", - "rowId": 3934, + "date": null, + "order": "CA-2017-123001", + "row": 3934, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, + "date": 2020-09-02T00:00:00.000Z, + "order": "CA-2017-123001", + "row": 3934, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4012, + "date": null, + "order": null, + "row": 4012, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-100811", - "rowId": 4012, + "date": null, + "order": "CA-2017-100811", + "row": 4012, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, + "date": 2020-11-21T00:00:00.000Z, + "order": "CA-2017-100811", + "row": 4012, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4031, + "date": null, + "order": null, + "row": 4031, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-124296", - "rowId": 4031, + "date": null, + "order": "CA-2017-124296", + "row": 4031, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, + "date": 2020-12-24T00:00:00.000Z, + "order": "CA-2017-124296", + "row": 4031, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4161, + "date": null, + "order": null, + "row": 4161, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-115546", - "rowId": 4161, + "date": null, + "order": "CA-2017-115546", + "row": 4161, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, + "date": 2020-05-14T00:00:00.000Z, + "order": "CA-2017-115546", + "row": 4161, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4227, + "date": null, + "order": null, + "row": 4227, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-120327", - "rowId": 4227, + "date": null, + "order": "CA-2017-120327", + "row": 4227, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, + "date": 2020-11-11T00:00:00.000Z, + "order": "CA-2017-120327", + "row": 4227, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4882, + "date": null, + "order": null, + "row": 4882, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-143567", - "rowId": 4882, + "date": null, + "order": "CA-2017-143567", + "row": 4882, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, + "date": 2020-11-02T00:00:00.000Z, + "order": "CA-2017-143567", + "row": 4882, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 5220, + "date": null, + "order": null, + "row": 5220, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-145653", - "rowId": 5220, + "date": null, + "order": "CA-2017-145653", + "row": 5220, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, + "date": 2020-09-01T00:00:00.000Z, + "order": "CA-2017-145653", + "row": 5220, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 5277, + "date": null, + "order": null, + "row": 5277, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-147333", - "rowId": 5277, + "date": null, + "order": "CA-2017-147333", + "row": 5277, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, + "date": 2020-12-14T00:00:00.000Z, + "order": "CA-2017-147333", + "row": 5277, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6125, + "date": null, + "order": null, + "row": 6125, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-145772", - "rowId": 6125, + "date": null, + "order": "CA-2017-145772", + "row": 6125, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, + "date": 2020-06-03T00:00:00.000Z, + "order": "CA-2017-145772", + "row": 6125, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6205, + "date": null, + "order": null, + "row": 6205, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-145660", - "rowId": 6205, + "date": null, + "order": "CA-2017-145660", + "row": 6205, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, + "date": 2020-12-01T00:00:00.000Z, + "order": "CA-2017-145660", + "row": 6205, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6272, + "date": null, + "order": null, + "row": 6272, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-102379", - "rowId": 6272, + "date": null, + "order": "CA-2017-102379", + "row": 6272, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, + "date": 2020-12-02T00:00:00.000Z, + "order": "CA-2017-102379", + "row": 6272, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6459, + "date": null, + "order": null, + "row": 6459, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "US-2017-133361", - "rowId": 6459, + "date": null, + "order": "US-2017-133361", + "row": 6459, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, + "date": 2020-05-14T00:00:00.000Z, + "order": "US-2017-133361", + "row": 6459, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6651, + "date": null, + "order": null, + "row": 6651, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "US-2017-124779", - "rowId": 6651, + "date": null, + "order": "US-2017-124779", + "row": 6651, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, + "date": 2020-09-08T00:00:00.000Z, + "order": "US-2017-124779", + "row": 6651, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 7174, + "date": null, + "order": null, + "row": 7174, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "US-2017-141677", - "rowId": 7174, + "date": null, + "order": "US-2017-141677", + "row": 7174, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, + "date": 2020-03-26T00:00:00.000Z, + "order": "US-2017-141677", + "row": 7174, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 7293, + "date": null, + "order": null, + "row": 7293, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-109183", - "rowId": 7293, + "date": null, + "order": "CA-2017-109183", + "row": 7293, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, + "date": 2020-12-04T00:00:00.000Z, + "order": "CA-2017-109183", + "row": 7293, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 7310, + "date": null, + "order": null, + "row": 7310, }, Object { "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-112172", - "rowId": 7310, + "date": null, + "order": "CA-2017-112172", + "row": 7310, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, + "date": 2020-06-10T00:00:00.000Z, + "order": "CA-2017-112172", + "row": 7310, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-135069", + "row": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-04-10T00:00:00.000Z, + "order": "CA-2017-135069", + "row": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 7698, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-151799", + "row": 7698, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-12-14T00:00:00.000Z, + "order": "CA-2017-151799", + "row": 7698, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 8425, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-150091", + "row": 8425, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-10-12T00:00:00.000Z, + "order": "CA-2017-150091", + "row": 8425, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 8621, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "US-2017-119319", + "row": 8621, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-11-06T00:00:00.000Z, + "order": "US-2017-119319", + "row": 8621, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 8673, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-163265", + "row": 8673, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-02-16T00:00:00.000Z, + "order": "CA-2017-163265", + "row": 8673, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 8697, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-119284", + "row": 8697, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-06-15T00:00:00.000Z, + "order": "CA-2017-119284", + "row": 8697, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 8878, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-126928", + "row": 8878, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-09-17T00:00:00.000Z, + "order": "CA-2017-126928", + "row": 8878, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 8958, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-105620", + "row": 8958, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-12-25T00:00:00.000Z, + "order": "CA-2017-105620", + "row": 8958, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 9473, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-102925", + "row": 9473, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-11-05T00:00:00.000Z, + "order": "CA-2017-102925", + "row": 9473, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 9584, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-116127", + "row": 9584, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-06-25T00:00:00.000Z, + "order": "CA-2017-116127", + "row": 9584, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 9618, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-160633", + "row": 9618, + }, + Object { + "SUM(a.cnt)": "1", + "date": 2020-11-16T00:00:00.000Z, + "order": "CA-2017-160633", + "row": 9618, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": null, + "row": 9619, + }, + Object { + "SUM(a.cnt)": "1", + "date": null, + "order": "CA-2017-160633", + "row": 9619, }, Object { "SUM(a.cnt)": "1", + "date": 2020-11-16T00:00:00.000Z, + "order": "CA-2017-160633", + "row": 9619, + }, +] +`; + +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Nested Rollup: nested_rollup 1`] = ` +Array [ + Object { + "SUM(a.cnt)": "44", "orderDate": null, "orderId": null, - "rowId": 7425, + "rowId": null, }, Object { "SUM(a.cnt)": "1", "orderDate": null, - "orderId": "CA-2017-135069", - "rowId": 7425, + "orderId": null, + "rowId": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, + "orderDate": null, + "orderId": "CA-2017-145142", + "rowId": 523, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-01-23T00:00:00.000Z, + "orderId": "CA-2017-145142", + "rowId": 523, }, Object { "SUM(a.cnt)": "1", "orderDate": null, "orderId": null, - "rowId": 7698, + "rowId": 849, }, Object { "SUM(a.cnt)": "1", "orderDate": null, - "orderId": "CA-2017-151799", - "rowId": 7698, + "orderId": "CA-2017-107503", + "rowId": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, + "orderDate": 2020-01-01T00:00:00.000Z, + "orderId": "CA-2017-107503", + "rowId": 849, }, Object { "SUM(a.cnt)": "1", "orderDate": null, "orderId": null, - "rowId": 8425, + "rowId": 1013, }, Object { "SUM(a.cnt)": "1", "orderDate": null, - "orderId": "CA-2017-150091", - "rowId": 8425, + "orderId": "CA-2017-118437", + "rowId": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, + "orderDate": 2020-06-17T00:00:00.000Z, + "orderId": "CA-2017-118437", + "rowId": 1013, }, Object { "SUM(a.cnt)": "1", "orderDate": null, "orderId": null, - "rowId": 8621, + "rowId": 1494, }, Object { "SUM(a.cnt)": "1", "orderDate": null, - "orderId": "US-2017-119319", - "rowId": 8621, + "orderId": "CA-2017-139661", + "rowId": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, + "orderDate": 2020-10-30T00:00:00.000Z, + "orderId": "CA-2017-139661", + "rowId": 1494, }, Object { "SUM(a.cnt)": "1", "orderDate": null, "orderId": null, - "rowId": 8673, + "rowId": 1995, }, Object { "SUM(a.cnt)": "1", "orderDate": null, - "orderId": "CA-2017-163265", - "rowId": 8673, + "orderId": "CA-2017-133648", + "rowId": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, + "orderDate": 2020-06-25T00:00:00.000Z, + "orderId": "CA-2017-133648", + "rowId": 1995, }, Object { "SUM(a.cnt)": "1", "orderDate": null, "orderId": null, - "rowId": 8697, + "rowId": 2329, }, Object { "SUM(a.cnt)": "1", "orderDate": null, - "orderId": "CA-2017-119284", - "rowId": 8697, + "orderId": "CA-2017-138422", + "rowId": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, + "orderDate": 2020-09-23T00:00:00.000Z, + "orderId": "CA-2017-138422", + "rowId": 2329, }, Object { "SUM(a.cnt)": "1", "orderDate": null, "orderId": null, - "rowId": 8878, + "rowId": 2455, }, Object { "SUM(a.cnt)": "1", "orderDate": null, - "orderId": "CA-2017-126928", - "rowId": 8878, + "orderId": "CA-2017-140949", + "rowId": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, + "orderDate": 2020-03-17T00:00:00.000Z, + "orderId": "CA-2017-140949", + "rowId": 2455, }, Object { "SUM(a.cnt)": "1", "orderDate": null, "orderId": null, - "rowId": 8958, + "rowId": 2595, }, Object { "SUM(a.cnt)": "1", "orderDate": null, - "orderId": "CA-2017-105620", - "rowId": 8958, + "orderId": "CA-2017-149048", + "rowId": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, + "orderDate": 2020-05-13T00:00:00.000Z, + "orderId": "CA-2017-149048", + "rowId": 2595, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 2655, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-112515", + "rowId": 2655, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-09-17T00:00:00.000Z, + "orderId": "CA-2017-112515", + "rowId": 2655, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 2661, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-123372", + "rowId": 2661, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-28T00:00:00.000Z, + "orderId": "CA-2017-123372", + "rowId": 2661, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 2952, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-134915", + "rowId": 2952, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-12T00:00:00.000Z, + "orderId": "CA-2017-134915", + "rowId": 2952, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 3059, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-131492", + "rowId": 3059, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-10-19T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3059, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 3060, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-131492", + "rowId": 3060, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-10-19T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3060, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 3083, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "US-2017-132297", + "rowId": 3083, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-05-27T00:00:00.000Z, + "orderId": "US-2017-132297", + "rowId": 3083, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 3448, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-102554", + "rowId": 3448, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-06-11T00:00:00.000Z, + "orderId": "CA-2017-102554", + "rowId": 3448, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 3717, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-144568", + "rowId": 3717, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-05-29T00:00:00.000Z, + "orderId": "CA-2017-144568", + "rowId": 3717, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 3934, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-123001", + "rowId": 3934, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-09-02T00:00:00.000Z, + "orderId": "CA-2017-123001", + "rowId": 3934, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 4012, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-100811", + "rowId": 4012, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-21T00:00:00.000Z, + "orderId": "CA-2017-100811", + "rowId": 4012, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 4031, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-124296", + "rowId": 4031, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-12-24T00:00:00.000Z, + "orderId": "CA-2017-124296", + "rowId": 4031, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 4161, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-115546", + "rowId": 4161, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-05-14T00:00:00.000Z, + "orderId": "CA-2017-115546", + "rowId": 4161, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 4227, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-120327", + "rowId": 4227, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-11T00:00:00.000Z, + "orderId": "CA-2017-120327", + "rowId": 4227, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 4882, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-143567", + "rowId": 4882, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-02T00:00:00.000Z, + "orderId": "CA-2017-143567", + "rowId": 4882, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 5220, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-145653", + "rowId": 5220, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-09-01T00:00:00.000Z, + "orderId": "CA-2017-145653", + "rowId": 5220, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 5277, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-147333", + "rowId": 5277, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-12-14T00:00:00.000Z, + "orderId": "CA-2017-147333", + "rowId": 5277, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 6125, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-145772", + "rowId": 6125, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-06-03T00:00:00.000Z, + "orderId": "CA-2017-145772", + "rowId": 6125, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 6205, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-145660", + "rowId": 6205, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-12-01T00:00:00.000Z, + "orderId": "CA-2017-145660", + "rowId": 6205, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 6272, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-102379", + "rowId": 6272, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-12-02T00:00:00.000Z, + "orderId": "CA-2017-102379", + "rowId": 6272, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 6459, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "US-2017-133361", + "rowId": 6459, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-05-14T00:00:00.000Z, + "orderId": "US-2017-133361", + "rowId": 6459, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 6651, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "US-2017-124779", + "rowId": 6651, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-09-08T00:00:00.000Z, + "orderId": "US-2017-124779", + "rowId": 6651, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 7174, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "US-2017-141677", + "rowId": 7174, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-03-26T00:00:00.000Z, + "orderId": "US-2017-141677", + "rowId": 7174, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 7293, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-109183", + "rowId": 7293, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-12-04T00:00:00.000Z, + "orderId": "CA-2017-109183", + "rowId": 7293, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 7310, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-112172", + "rowId": 7310, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-06-10T00:00:00.000Z, + "orderId": "CA-2017-112172", + "rowId": 7310, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-135069", + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-04-10T00:00:00.000Z, + "orderId": "CA-2017-135069", + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 7698, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-151799", + "rowId": 7698, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-12-14T00:00:00.000Z, + "orderId": "CA-2017-151799", + "rowId": 7698, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 8425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-150091", + "rowId": 8425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-10-12T00:00:00.000Z, + "orderId": "CA-2017-150091", + "rowId": 8425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 8621, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "US-2017-119319", + "rowId": 8621, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-06T00:00:00.000Z, + "orderId": "US-2017-119319", + "rowId": 8621, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 8673, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-163265", + "rowId": 8673, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-02-16T00:00:00.000Z, + "orderId": "CA-2017-163265", + "rowId": 8673, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 8697, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-119284", + "rowId": 8697, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-06-15T00:00:00.000Z, + "orderId": "CA-2017-119284", + "rowId": 8697, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 8878, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-126928", + "rowId": 8878, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-09-17T00:00:00.000Z, + "orderId": "CA-2017-126928", + "rowId": 8878, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 8958, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-105620", + "rowId": 8958, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-12-25T00:00:00.000Z, + "orderId": "CA-2017-105620", + "rowId": 8958, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 9473, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-102925", + "rowId": 9473, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-05T00:00:00.000Z, + "orderId": "CA-2017-102925", + "rowId": 9473, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 9584, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-116127", + "rowId": 9584, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-06-25T00:00:00.000Z, + "orderId": "CA-2017-116127", + "rowId": 9584, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 9618, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-160633", + "rowId": 9618, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-16T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9618, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": null, + "rowId": 9619, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": null, + "orderId": "CA-2017-160633", + "rowId": 9619, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-11-16T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9619, + }, +] +`; + +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +Array [ + Object { + "SUM(ECommerce.count)": "44", + "city": null, + "order": null, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 944.96, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 944.96, + "orderData": 2020-01-23T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Detroit", + "order": 944.96, + "orderData": 2020-01-23T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 946.792, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 946.792, + "orderData": 2020-01-01T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Lorain", + "order": 946.792, + "orderData": 2020-01-01T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 1041.06, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 1041.06, + "orderData": 2020-06-17T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Olympia", + "order": 1041.06, + "orderData": 2020-06-17T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 1513.28, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 1513.28, + "orderData": 2020-10-30T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Vancouver", + "order": 1513.28, + "orderData": 2020-10-30T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 2017.608, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 2017.608, + "orderData": 2020-06-25T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 2017.608, + "orderData": 2020-06-25T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 2357.704, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 2357.704, + "orderData": 2020-09-23T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 2357.704, + "orderData": 2020-09-23T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 2598.2, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 2598.2, + "orderData": 2020-03-17T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 2598.2, + "orderData": 2020-03-17T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 2956.92, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 2956.92, + "orderData": 2020-05-13T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 2956.92, + "orderData": 2020-05-13T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3108.736, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3108.736, + "orderData": 2020-10-19T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "San Francisco", + "order": 3108.736, + "orderData": 2020-10-19T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3120.12, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3120.12, + "orderData": 2020-10-19T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "San Francisco", + "order": 3120.12, + "orderData": 2020-10-19T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3179.776, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3179.776, + "orderData": 2020-11-12T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Glendale", + "order": 3179.776, + "orderData": 2020-11-12T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3455.52, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3455.52, + "orderData": 2020-06-11T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Auburn", + "order": 3455.52, + "orderData": 2020-06-11T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3764.1, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3764.1, + "orderData": 2020-05-29T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Omaha", + "order": 3764.1, + "orderData": 2020-05-29T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3952.8, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 3952.8, + "orderData": 2020-09-02T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Bakersfield", + "order": 3952.8, + "orderData": 2020-09-02T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 4090.592, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 4090.592, + "orderData": 2020-11-21T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Philadelphia", + "order": 4090.592, + "orderData": 2020-11-21T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 4162.9400000000005, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 4162.9400000000005, + "orderData": 2020-05-27T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Louisville", + "order": 4162.9400000000005, + "orderData": 2020-05-27T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 4318.84, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 4318.84, + "orderData": 2020-11-11T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 4318.84, + "orderData": 2020-11-11T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 4496.76, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 4496.76, + "orderData": 2020-12-24T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Lafayette", + "order": 4496.76, + "orderData": 2020-12-24T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 5240.88, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 5240.88, + "orderData": 2020-09-17T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Provo", + "order": 5240.88, + "orderData": 2020-09-17T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 5240.9400000000005, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 5240.9400000000005, + "orderData": 2020-05-14T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 5240.9400000000005, + "orderData": 2020-05-14T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 5366.5, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 5366.5, + "orderData": 2020-12-14T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 5366.5, + "orderData": 2020-12-14T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6214.5, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6214.5, + "orderData": 2020-06-03T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Los Angeles", + "order": 6214.5, + "orderData": 2020-06-03T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6216.52, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6216.52, + "orderData": 2020-09-01T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Detroit", + "order": 6216.52, + "orderData": 2020-09-01T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6220.424, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6220.424, + "orderData": 2020-12-01T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Marion", + "order": 6220.424, + "orderData": 2020-12-01T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6466.52, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6466.52, + "orderData": 2020-05-14T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Baltimore", + "order": 6466.52, + "orderData": 2020-05-14T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6620.780000000001, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6620.780000000001, + "orderData": 2020-11-28T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 6620.780000000001, + "orderData": 2020-11-28T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6631.8, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6631.8, + "orderData": 2020-12-02T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Oakland", + "order": 6631.8, + "orderData": 2020-12-02T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6742.84, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 6742.84, + "orderData": 2020-09-08T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Arlington", + "order": 6742.84, + "orderData": 2020-09-08T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 7338.26, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 7338.26, + "orderData": 2020-06-10T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 7338.26, + "orderData": 2020-06-10T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 7498.344, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 7498.344, + "orderData": 2020-04-10T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Philadelphia", + "order": 7498.344, + "orderData": 2020-04-10T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 8591, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 8591, + "orderData": 2020-12-04T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 8591, + "orderData": 2020-12-04T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 8682.12, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 8682.12, + "orderData": 2020-11-06T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Dallas", + "order": 8682.12, + "orderData": 2020-11-06T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 8709.736, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 8709.736, + "orderData": 2020-02-16T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Decatur", + "order": 8709.736, + "orderData": 2020-02-16T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9176.952, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9176.952, + "orderData": 2020-06-15T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 9176.952, + "orderData": 2020-06-15T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9198, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9198, + "orderData": 2020-12-25T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 9198, + "orderData": 2020-12-25T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9381.82, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9381.82, + "orderData": 2020-11-02T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 9381.82, + "orderData": 2020-11-02T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9729.248, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9729.248, + "orderData": 2020-11-05T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 9729.248, + "orderData": 2020-11-05T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9791.704, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9791.704, + "orderData": 2020-11-16T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Bowling", + "order": 9791.704, + "orderData": 2020-11-16T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9838, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 9838, + "orderData": 2020-09-17T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Morristown", + "order": 9838, + "orderData": 2020-09-17T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 10097.96, + "orderData": null, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": null, + "order": 10097.96, + "orderData": 2020-12-14T00:00:00.000Z, + }, + Object { + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 10097.96, + "orderData": 2020-12-14T00:00:00.000Z, }, Object { - "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 9473, + "SUM(ECommerce.count)": "1", + "city": null, + "order": 10385.568, + "orderData": null, }, Object { - "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-102925", - "rowId": 9473, + "SUM(ECommerce.count)": "1", + "city": null, + "order": 10385.568, + "orderData": 2020-06-25T00:00:00.000Z, }, Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, + "SUM(ECommerce.count)": "1", + "city": "New York City", + "order": 10385.568, + "orderData": 2020-06-25T00:00:00.000Z, }, Object { - "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 9584, + "SUM(ECommerce.count)": "1", + "city": null, + "order": 11417.964, + "orderData": null, }, Object { - "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-116127", - "rowId": 9584, + "SUM(ECommerce.count)": "1", + "city": null, + "order": 11417.964, + "orderData": 2020-11-16T00:00:00.000Z, }, Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, + "SUM(ECommerce.count)": "1", + "city": "Columbus", + "order": 11417.964, + "orderData": 2020-11-16T00:00:00.000Z, }, Object { - "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 9618, + "SUM(ECommerce.count)": "1", + "city": null, + "order": 11973.92, + "orderData": null, }, Object { - "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-160633", - "rowId": 9618, + "SUM(ECommerce.count)": "1", + "city": null, + "order": 11973.92, + "orderData": 2020-03-26T00:00:00.000Z, }, Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, + "SUM(ECommerce.count)": "1", + "city": "Houston", + "order": 11973.92, + "orderData": 2020-03-26T00:00:00.000Z, }, Object { - "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": null, - "rowId": 9619, + "SUM(ECommerce.count)": "1", + "city": null, + "order": 12734.8, + "orderData": null, }, Object { - "SUM(a.cnt)": "1", - "orderDate": null, - "orderId": "CA-2017-160633", - "rowId": 9619, + "SUM(ECommerce.count)": "1", + "city": null, + "order": 12734.8, + "orderData": 2020-10-12T00:00:00.000Z, }, Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9619, + "SUM(ECommerce.count)": "1", + "city": "Lakewood", + "order": 12734.8, + "orderData": 2020-10-12T00:00:00.000Z, }, ] `; @@ -1606,6 +3212,14 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` +Array [ + Object { + "a0": 41, + }, +] +`; + exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` Array [ Object { @@ -4525,102 +6139,297 @@ Array [ "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", + "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/bigquery-driver querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": 1, + }, + Object { + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Day": null, + }, +] +`; + +exports[`Queries with the @cubejs-backend/bigquery-driver querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Month": 2, + }, + Object { + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 3, + }, + Object { + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 6, + }, + Object { + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 12, + }, + Object { + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 7, + }, + Object { + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": null, + }, + Object { + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 6, + }, + Object { + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 9, }, 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", + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 11, }, 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", + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Month": 15, }, +] +`; + +exports[`Queries with the @cubejs-backend/bigquery-driver querying BigECommerce: rolling count_distinct_approx window by 2 week 1`] = ` +Array [ 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", + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 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", + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 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", + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 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", + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": null, }, 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", + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 2, }, 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", + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 3, }, 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", + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": null, }, 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", + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": null, }, 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", + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 3, }, 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", + "BigECommerce.orderDate": "2020-10-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 2, }, 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", + "BigECommerce.orderDate": "2020-11-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 2, + }, + Object { + "BigECommerce.orderDate": "2020-12-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "BigECommerce.rollingCountApproxBy2Week": 2, }, ] `; @@ -8863,6 +10672,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/bigquery-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/bigquery-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/bigquery-driver querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap index 065bae707af68..d3450d53684bf 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap @@ -1,3262 +1,1604 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Complex Rollup: complex_rollup 1`] = ` -Array [ - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, - }, - Object { - "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/clickhouse-driver export-bucket-s3 SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` -Array [ - Object { - "SUM(a.count)": "1", - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-160633", - "row": 9619, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-163265", - "row": 8673, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-141677", - "row": 7174, - }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` -Array [ - Object { - "SUM(a.count)": "1", - "date": 2020-06-10T00:00:00.000Z, - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-12T00:00:00.000Z, - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-15T00:00:00.000Z, - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-24T00:00:00.000Z, - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-01T00:00:00.000Z, - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-13T00:00:00.000Z, - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-03-26T00:00:00.000Z, - "order": "US-2017-141677", - "row": 7174, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-02T00:00:00.000Z, - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-03T00:00:00.000Z, - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-01-01T00:00:00.000Z, - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-11T00:00:00.000Z, - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-05T00:00:00.000Z, - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-01T00:00:00.000Z, - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9619, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-03-17T00:00:00.000Z, - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-04T00:00:00.000Z, - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-01-23T00:00:00.000Z, - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-30T00:00:00.000Z, - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-27T00:00:00.000Z, - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-29T00:00:00.000Z, - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-25T00:00:00.000Z, - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-12T00:00:00.000Z, - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-02T00:00:00.000Z, - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-02T00:00:00.000Z, - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-08T00:00:00.000Z, - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-17T00:00:00.000Z, - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-23T00:00:00.000Z, - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-21T00:00:00.000Z, - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-28T00:00:00.000Z, - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-04-10T00:00:00.000Z, - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-06T00:00:00.000Z, - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-11T00:00:00.000Z, - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-02-16T00:00:00.000Z, - "order": "CA-2017-163265", - "row": 8673, - }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` -Array [ - Object { - "SUM(a.cnt)": "44", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 0, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 523, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-01-23T00:00:00.000Z, - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 849, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-01-01T00:00:00.000Z, - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-17T00:00:00.000Z, - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-10-30T00:00:00.000Z, - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-23T00:00:00.000Z, - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-03-17T00:00:00.000Z, - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-13T00:00:00.000Z, - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-28T00:00:00.000Z, - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-12T00:00:00.000Z, - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-27T00:00:00.000Z, - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-11T00:00:00.000Z, - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-29T00:00:00.000Z, - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-02T00:00:00.000Z, - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-21T00:00:00.000Z, - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-24T00:00:00.000Z, - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-11T00:00:00.000Z, - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-02T00:00:00.000Z, - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-01T00:00:00.000Z, - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-03T00:00:00.000Z, - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-01T00:00:00.000Z, - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-02T00:00:00.000Z, - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6651, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-08T00:00:00.000Z, - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7174, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-141677", - "row": 7174, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-03-26T00:00:00.000Z, - "order": "US-2017-141677", - "row": 7174, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7293, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-04T00:00:00.000Z, - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7310, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-10T00:00:00.000Z, - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-04-10T00:00:00.000Z, - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7698, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-10-12T00:00:00.000Z, - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8621, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-06T00:00:00.000Z, - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8673, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-163265", - "row": 8673, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-02-16T00:00:00.000Z, - "order": "CA-2017-163265", - "row": 8673, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8697, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-15T00:00:00.000Z, - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8878, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8958, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-25T00:00:00.000Z, - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 9473, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-05T00:00:00.000Z, - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 9584, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 9618, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 9619, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9619, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9619, - }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup: nested_rollup 1`] = ` -Array [ - Object { - "SUM(a.cnt)": "44", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 0, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 523, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 849, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6651, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, - }, +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +Array [ Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, + "SUM(a.cnt)": "44", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 0, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7174, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-145142", + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, + "date": 2020-01-23T00:00:00.000Z, + "order": "CA-2017-145142", + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7293, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-107503", + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, + "date": 2020-01-01T00:00:00.000Z, + "order": "CA-2017-107503", + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7310, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-118437", + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, + "date": 2020-06-17T00:00:00.000Z, + "order": "CA-2017-118437", + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7425, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-139661", + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, + "date": 2020-10-30T00:00:00.000Z, + "order": "CA-2017-139661", + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7698, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-133648", + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, + "date": 2020-06-25T00:00:00.000Z, + "order": "CA-2017-133648", + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8425, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-138422", + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, + "date": 2020-09-23T00:00:00.000Z, + "order": "CA-2017-138422", + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8621, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-140949", + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, + "date": 2020-03-17T00:00:00.000Z, + "order": "CA-2017-140949", + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8673, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-149048", + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, + "date": 2020-05-13T00:00:00.000Z, + "order": "CA-2017-149048", + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8697, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-112515", + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, + "date": 2020-09-17T00:00:00.000Z, + "order": "CA-2017-112515", + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8878, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-123372", + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, + "date": 2020-11-28T00:00:00.000Z, + "order": "CA-2017-123372", + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8958, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-134915", + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, + "date": 2020-11-12T00:00:00.000Z, + "order": "CA-2017-134915", + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 9473, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, + "date": 2020-10-19T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 9584, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, + "date": 2020-10-19T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 9618, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-132297", + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, + "date": 2020-05-27T00:00:00.000Z, + "order": "US-2017-132297", + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 9619, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3448, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9619, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-102554", + "row": 3448, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9619, - }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` -Array [ - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": 944.96, - "orderData": 2020-01-23T00:00:00.000Z, + "date": 2020-06-11T00:00:00.000Z, + "order": "CA-2017-102554", + "row": 3448, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "order": 946.792, - "orderData": 2020-01-01T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3717, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "order": 1041.06, - "orderData": 2020-06-17T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-144568", + "row": 3717, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "order": 1513.28, - "orderData": 2020-10-30T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-05-29T00:00:00.000Z, + "order": "CA-2017-144568", + "row": 3717, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2017.608, - "orderData": 2020-06-25T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3934, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2357.704, - "orderData": 2020-09-23T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-123001", + "row": 3934, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 2598.2, - "orderData": 2020-03-17T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-09-02T00:00:00.000Z, + "order": "CA-2017-123001", + "row": 3934, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2956.92, - "orderData": 2020-05-13T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4012, }, Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": 3108.736, - "orderData": 2020-10-19T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-100811", + "row": 4012, }, Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": 3120.12, - "orderData": 2020-10-19T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-11-21T00:00:00.000Z, + "order": "CA-2017-100811", + "row": 4012, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "order": 3179.776, - "orderData": 2020-11-12T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4031, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "order": 3455.52, - "orderData": 2020-06-11T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-124296", + "row": 4031, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "order": 3764.1, - "orderData": 2020-05-29T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-12-24T00:00:00.000Z, + "order": "CA-2017-124296", + "row": 4031, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "order": 3952.8, - "orderData": 2020-09-02T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4161, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": 4090.592, - "orderData": 2020-11-21T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-115546", + "row": 4161, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "order": 4162.9400000000005, - "orderData": 2020-05-27T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-05-14T00:00:00.000Z, + "order": "CA-2017-115546", + "row": 4161, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 4318.84, - "orderData": 2020-11-11T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4227, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "order": 4496.76, - "orderData": 2020-12-24T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-120327", + "row": 4227, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "order": 5240.88, - "orderData": 2020-09-17T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-11-11T00:00:00.000Z, + "order": "CA-2017-120327", + "row": 4227, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 5240.9400000000005, - "orderData": 2020-05-14T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4882, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 5366.5, - "orderData": 2020-12-14T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-143567", + "row": 4882, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "order": 6214.5, - "orderData": 2020-06-03T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-11-02T00:00:00.000Z, + "order": "CA-2017-143567", + "row": 4882, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": 6216.52, - "orderData": 2020-09-01T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 5220, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "order": 6220.424, - "orderData": 2020-12-01T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-145653", + "row": 5220, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "order": 6466.52, - "orderData": 2020-05-14T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-09-01T00:00:00.000Z, + "order": "CA-2017-145653", + "row": 5220, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 6620.780000000001, - "orderData": 2020-11-28T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 5277, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "order": 6631.8, - "orderData": 2020-12-02T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-147333", + "row": 5277, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "order": 6742.84, - "orderData": 2020-09-08T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-12-14T00:00:00.000Z, + "order": "CA-2017-147333", + "row": 5277, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 7338.26, - "orderData": 2020-06-10T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6125, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": 7498.344, - "orderData": 2020-04-10T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-145772", + "row": 6125, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 8591, - "orderData": 2020-12-04T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-06-03T00:00:00.000Z, + "order": "CA-2017-145772", + "row": 6125, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "order": 8682.12, - "orderData": 2020-11-06T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6205, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "order": 8709.736, - "orderData": 2020-02-16T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-145660", + "row": 6205, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9176.952, - "orderData": 2020-06-15T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-12-01T00:00:00.000Z, + "order": "CA-2017-145660", + "row": 6205, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9198, - "orderData": 2020-12-25T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6272, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9381.82, - "orderData": 2020-11-02T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-102379", + "row": 6272, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 9729.248, - "orderData": 2020-11-05T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-12-02T00:00:00.000Z, + "order": "CA-2017-102379", + "row": 6272, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", - "order": 9791.704, - "orderData": 2020-11-16T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6459, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "order": 9838, - "orderData": 2020-09-17T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-133361", + "row": 6459, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 10097.96, - "orderData": 2020-12-14T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-05-14T00:00:00.000Z, + "order": "US-2017-133361", + "row": 6459, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 10385.568, - "orderData": 2020-06-25T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6651, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 11417.964, - "orderData": 2020-11-16T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-124779", + "row": 6651, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "order": 11973.92, - "orderData": 2020-03-26T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-09-08T00:00:00.000Z, + "order": "US-2017-124779", + "row": 6651, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "order": 12734.8, - "orderData": 2020-10-12T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7174, }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` -Array [ Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": "CA-2017-145142", - "orderData": 2020-01-23T00:00:00.000Z, - "row": 523, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-141677", + "row": 7174, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "order": "CA-2017-107503", - "orderData": 2020-01-01T00:00:00.000Z, - "row": 849, + "SUM(a.cnt)": "1", + "date": 2020-03-26T00:00:00.000Z, + "order": "US-2017-141677", + "row": 7174, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "order": "CA-2017-118437", - "orderData": 2020-06-17T00:00:00.000Z, - "row": 1013, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7293, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "order": "CA-2017-139661", - "orderData": 2020-10-30T00:00:00.000Z, - "row": 1494, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-109183", + "row": 7293, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-133648", - "orderData": 2020-06-25T00:00:00.000Z, - "row": 1995, + "SUM(a.cnt)": "1", + "date": 2020-12-04T00:00:00.000Z, + "order": "CA-2017-109183", + "row": 7293, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-138422", - "orderData": 2020-09-23T00:00:00.000Z, - "row": 2329, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7310, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-140949", - "orderData": 2020-03-17T00:00:00.000Z, - "row": 2455, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-112172", + "row": 7310, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-149048", - "orderData": 2020-05-13T00:00:00.000Z, - "row": 2595, + "SUM(a.cnt)": "1", + "date": 2020-06-10T00:00:00.000Z, + "order": "CA-2017-112172", + "row": 7310, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "order": "CA-2017-112515", - "orderData": 2020-09-17T00:00:00.000Z, - "row": 2655, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-123372", - "orderData": 2020-11-28T00:00:00.000Z, - "row": 2661, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-135069", + "row": 7425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "order": "CA-2017-134915", - "orderData": 2020-11-12T00:00:00.000Z, - "row": 2952, + "SUM(a.cnt)": "1", + "date": 2020-04-10T00:00:00.000Z, + "order": "CA-2017-135069", + "row": 7425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": "CA-2017-131492", - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3059, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7698, }, Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": "CA-2017-131492", - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3060, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-151799", + "row": 7698, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "order": "US-2017-132297", - "orderData": 2020-05-27T00:00:00.000Z, - "row": 3083, + "SUM(a.cnt)": "1", + "date": 2020-12-14T00:00:00.000Z, + "order": "CA-2017-151799", + "row": 7698, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "order": "CA-2017-102554", - "orderData": 2020-06-11T00:00:00.000Z, - "row": 3448, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "order": "CA-2017-144568", - "orderData": 2020-05-29T00:00:00.000Z, - "row": 3717, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-150091", + "row": 8425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "order": "CA-2017-123001", - "orderData": 2020-09-02T00:00:00.000Z, - "row": 3934, + "SUM(a.cnt)": "1", + "date": 2020-10-12T00:00:00.000Z, + "order": "CA-2017-150091", + "row": 8425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": "CA-2017-100811", - "orderData": 2020-11-21T00:00:00.000Z, - "row": 4012, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8621, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "order": "CA-2017-124296", - "orderData": 2020-12-24T00:00:00.000Z, - "row": 4031, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-119319", + "row": 8621, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-115546", - "orderData": 2020-05-14T00:00:00.000Z, - "row": 4161, + "SUM(a.cnt)": "1", + "date": 2020-11-06T00:00:00.000Z, + "order": "US-2017-119319", + "row": 8621, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-120327", - "orderData": 2020-11-11T00:00:00.000Z, - "row": 4227, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8673, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-143567", - "orderData": 2020-11-02T00:00:00.000Z, - "row": 4882, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-163265", + "row": 8673, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": "CA-2017-145653", - "orderData": 2020-09-01T00:00:00.000Z, - "row": 5220, + "SUM(a.cnt)": "1", + "date": 2020-02-16T00:00:00.000Z, + "order": "CA-2017-163265", + "row": 8673, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-147333", - "orderData": 2020-12-14T00:00:00.000Z, - "row": 5277, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8697, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "order": "CA-2017-145772", - "orderData": 2020-06-03T00:00:00.000Z, - "row": 6125, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-119284", + "row": 8697, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "order": "CA-2017-145660", - "orderData": 2020-12-01T00:00:00.000Z, - "row": 6205, + "SUM(a.cnt)": "1", + "date": 2020-06-15T00:00:00.000Z, + "order": "CA-2017-119284", + "row": 8697, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "order": "CA-2017-102379", - "orderData": 2020-12-02T00:00:00.000Z, - "row": 6272, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8878, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "order": "US-2017-133361", - "orderData": 2020-05-14T00:00:00.000Z, - "row": 6459, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-126928", + "row": 8878, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "order": "US-2017-124779", - "orderData": 2020-09-08T00:00:00.000Z, - "row": 6651, + "SUM(a.cnt)": "1", + "date": 2020-09-17T00:00:00.000Z, + "order": "CA-2017-126928", + "row": 8878, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "order": "US-2017-141677", - "orderData": 2020-03-26T00:00:00.000Z, - "row": 7174, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8958, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-109183", - "orderData": 2020-12-04T00:00:00.000Z, - "row": 7293, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-105620", + "row": 8958, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-112172", - "orderData": 2020-06-10T00:00:00.000Z, - "row": 7310, + "SUM(a.cnt)": "1", + "date": 2020-12-25T00:00:00.000Z, + "order": "CA-2017-105620", + "row": 8958, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": "CA-2017-135069", - "orderData": 2020-04-10T00:00:00.000Z, - "row": 7425, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 9473, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-151799", - "orderData": 2020-12-14T00:00:00.000Z, - "row": 7698, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-102925", + "row": 9473, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "order": "CA-2017-150091", - "orderData": 2020-10-12T00:00:00.000Z, - "row": 8425, + "SUM(a.cnt)": "1", + "date": 2020-11-05T00:00:00.000Z, + "order": "CA-2017-102925", + "row": 9473, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "order": "US-2017-119319", - "orderData": 2020-11-06T00:00:00.000Z, - "row": 8621, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 9584, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "order": "CA-2017-163265", - "orderData": 2020-02-16T00:00:00.000Z, - "row": 8673, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-116127", + "row": 9584, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-119284", - "orderData": 2020-06-15T00:00:00.000Z, - "row": 8697, + "SUM(a.cnt)": "1", + "date": 2020-06-25T00:00:00.000Z, + "order": "CA-2017-116127", + "row": 9584, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "order": "CA-2017-126928", - "orderData": 2020-09-17T00:00:00.000Z, - "row": 8878, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 9618, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-105620", - "orderData": 2020-12-25T00:00:00.000Z, - "row": 8958, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-160633", + "row": 9618, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-102925", - "orderData": 2020-11-05T00:00:00.000Z, - "row": 9473, + "SUM(a.cnt)": "1", + "date": 2020-11-16T00:00:00.000Z, + "order": "CA-2017-160633", + "row": 9618, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-116127", - "orderData": 2020-06-25T00:00:00.000Z, - "row": 9584, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 9619, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, "order": "CA-2017-160633", - "orderData": 2020-11-16T00:00:00.000Z, - "row": 9618, + "row": 9619, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", + "SUM(a.cnt)": "1", + "date": 2020-11-16T00:00:00.000Z, "order": "CA-2017-160633", - "orderData": 2020-11-16T00:00:00.000Z, "row": 9619, }, ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup: nested_rollup 1`] = ` Array [ Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "44", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 0, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 523, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-145142", + "rowId": 523, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-01-23T00:00:00.000Z, "orderId": "CA-2017-145142", "rowId": 523, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 849, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-107503", + "rowId": 849, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-01-01T00:00:00.000Z, "orderId": "CA-2017-107503", "rowId": 849, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 1013, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-118437", + "rowId": 1013, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-17T00:00:00.000Z, "orderId": "CA-2017-118437", "rowId": 1013, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 1494, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-139661", + "rowId": 1494, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-10-30T00:00:00.000Z, "orderId": "CA-2017-139661", "rowId": 1494, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 1995, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-133648", + "rowId": 1995, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-25T00:00:00.000Z, "orderId": "CA-2017-133648", "rowId": 1995, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2329, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-138422", + "rowId": 2329, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-23T00:00:00.000Z, "orderId": "CA-2017-138422", "rowId": 2329, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2455, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-140949", + "rowId": 2455, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-03-17T00:00:00.000Z, "orderId": "CA-2017-140949", "rowId": 2455, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2595, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-149048", + "rowId": 2595, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-13T00:00:00.000Z, "orderId": "CA-2017-149048", "rowId": 2595, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2655, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-112515", + "rowId": 2655, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-17T00:00:00.000Z, "orderId": "CA-2017-112515", "rowId": 2655, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2661, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-123372", + "rowId": 2661, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-28T00:00:00.000Z, "orderId": "CA-2017-123372", "rowId": 2661, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2952, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-134915", + "rowId": 2952, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-12T00:00:00.000Z, "orderId": "CA-2017-134915", "rowId": 2952, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3059, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3059, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-10-19T00:00:00.000Z, "orderId": "CA-2017-131492", "rowId": 3059, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3060, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3060, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-10-19T00:00:00.000Z, "orderId": "CA-2017-131492", "rowId": 3060, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3083, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-132297", + "rowId": 3083, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-27T00:00:00.000Z, "orderId": "US-2017-132297", "rowId": 3083, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3448, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-102554", + "rowId": 3448, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-11T00:00:00.000Z, "orderId": "CA-2017-102554", "rowId": 3448, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3717, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-144568", + "rowId": 3717, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-29T00:00:00.000Z, "orderId": "CA-2017-144568", "rowId": 3717, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3934, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-123001", + "rowId": 3934, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-02T00:00:00.000Z, "orderId": "CA-2017-123001", "rowId": 3934, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4012, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-100811", + "rowId": 4012, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-21T00:00:00.000Z, "orderId": "CA-2017-100811", "rowId": 4012, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4031, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-124296", + "rowId": 4031, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-24T00:00:00.000Z, "orderId": "CA-2017-124296", "rowId": 4031, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4161, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-115546", + "rowId": 4161, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-14T00:00:00.000Z, "orderId": "CA-2017-115546", "rowId": 4161, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4227, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-120327", + "rowId": 4227, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-11T00:00:00.000Z, "orderId": "CA-2017-120327", "rowId": 4227, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4882, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-143567", + "rowId": 4882, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-02T00:00:00.000Z, "orderId": "CA-2017-143567", "rowId": 4882, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 5220, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-145653", + "rowId": 5220, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-01T00:00:00.000Z, "orderId": "CA-2017-145653", "rowId": 5220, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 5277, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-147333", + "rowId": 5277, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-14T00:00:00.000Z, "orderId": "CA-2017-147333", "rowId": 5277, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6125, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-145772", + "rowId": 6125, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-03T00:00:00.000Z, "orderId": "CA-2017-145772", "rowId": 6125, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6205, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-145660", + "rowId": 6205, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-01T00:00:00.000Z, "orderId": "CA-2017-145660", "rowId": 6205, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6272, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-102379", + "rowId": 6272, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-02T00:00:00.000Z, "orderId": "CA-2017-102379", "rowId": 6272, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6459, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-133361", + "rowId": 6459, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-14T00:00:00.000Z, "orderId": "US-2017-133361", "rowId": 6459, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6651, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-124779", + "rowId": 6651, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-08T00:00:00.000Z, "orderId": "US-2017-124779", "rowId": 6651, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7174, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-141677", + "rowId": 7174, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-03-26T00:00:00.000Z, "orderId": "US-2017-141677", "rowId": 7174, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7293, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-109183", + "rowId": 7293, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-04T00:00:00.000Z, "orderId": "CA-2017-109183", "rowId": 7293, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7310, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-112172", + "rowId": 7310, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-10T00:00:00.000Z, "orderId": "CA-2017-112172", "rowId": 7310, }, Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-135069", + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-04-10T00:00:00.000Z, + "orderId": "CA-2017-135069", + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7698, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-151799", + "rowId": 7698, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", "orderDate": 2020-12-14T00:00:00.000Z, "orderId": "CA-2017-151799", "rowId": 7698, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-150091", + "rowId": 8425, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-10-12T00:00:00.000Z, "orderId": "CA-2017-150091", "rowId": 8425, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8621, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-119319", + "rowId": 8621, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-06T00:00:00.000Z, "orderId": "US-2017-119319", "rowId": 8621, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8673, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-163265", + "rowId": 8673, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-02-16T00:00:00.000Z, "orderId": "CA-2017-163265", "rowId": 8673, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8697, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-119284", + "rowId": 8697, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-15T00:00:00.000Z, "orderId": "CA-2017-119284", "rowId": 8697, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8878, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-126928", + "rowId": 8878, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-17T00:00:00.000Z, "orderId": "CA-2017-126928", "rowId": 8878, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8958, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-105620", + "rowId": 8958, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-25T00:00:00.000Z, "orderId": "CA-2017-105620", "rowId": 8958, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 9473, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-102925", + "rowId": 9473, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-05T00:00:00.000Z, "orderId": "CA-2017-102925", "rowId": 9473, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 9584, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-116127", + "rowId": 9584, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-25T00:00:00.000Z, "orderId": "CA-2017-116127", "rowId": 9584, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 9618, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9618, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-16T00:00:00.000Z, "orderId": "CA-2017-160633", "rowId": 9618, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 9619, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9619, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-16T00:00:00.000Z, "orderId": "CA-2017-160633", "rowId": 9619, @@ -9685,6 +8027,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-full.test.ts.snap index bb2e01b4fb990..7c8092ef96ed8 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-full.test.ts.snap @@ -1,3262 +1,1604 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Complex Rollup: complex_rollup 1`] = ` -Array [ - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, - }, - Object { - "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/clickhouse-driver SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` -Array [ - Object { - "SUM(a.count)": "1", - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-160633", - "row": 9619, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.count)": "1", - "order": "CA-2017-163265", - "row": 8673, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.count)": "1", - "order": "US-2017-141677", - "row": 7174, - }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` -Array [ - Object { - "SUM(a.count)": "1", - "date": 2020-06-10T00:00:00.000Z, - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-12T00:00:00.000Z, - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-15T00:00:00.000Z, - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-24T00:00:00.000Z, - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-01T00:00:00.000Z, - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-13T00:00:00.000Z, - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-03-26T00:00:00.000Z, - "order": "US-2017-141677", - "row": 7174, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-02T00:00:00.000Z, - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-03T00:00:00.000Z, - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-01-01T00:00:00.000Z, - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-11T00:00:00.000Z, - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-05T00:00:00.000Z, - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-01T00:00:00.000Z, - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9619, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-03-17T00:00:00.000Z, - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-04T00:00:00.000Z, - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-01-23T00:00:00.000Z, - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-30T00:00:00.000Z, - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-27T00:00:00.000Z, - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-29T00:00:00.000Z, - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-25T00:00:00.000Z, - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-12T00:00:00.000Z, - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-02T00:00:00.000Z, - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-02T00:00:00.000Z, - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-08T00:00:00.000Z, - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-17T00:00:00.000Z, - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-23T00:00:00.000Z, - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-21T00:00:00.000Z, - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-28T00:00:00.000Z, - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-04-10T00:00:00.000Z, - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-06T00:00:00.000Z, - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-11T00:00:00.000Z, - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-02-16T00:00:00.000Z, - "order": "CA-2017-163265", - "row": 8673, - }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` -Array [ - Object { - "SUM(a.cnt)": "44", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 0, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 523, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-01-23T00:00:00.000Z, - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 849, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-01-01T00:00:00.000Z, - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-17T00:00:00.000Z, - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-10-30T00:00:00.000Z, - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-23T00:00:00.000Z, - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-03-17T00:00:00.000Z, - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-13T00:00:00.000Z, - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-28T00:00:00.000Z, - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-12T00:00:00.000Z, - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-27T00:00:00.000Z, - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-11T00:00:00.000Z, - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-29T00:00:00.000Z, - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-02T00:00:00.000Z, - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-21T00:00:00.000Z, - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-24T00:00:00.000Z, - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-11T00:00:00.000Z, - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-02T00:00:00.000Z, - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-01T00:00:00.000Z, - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-03T00:00:00.000Z, - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-01T00:00:00.000Z, - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-02T00:00:00.000Z, - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 6651, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-08T00:00:00.000Z, - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7174, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-141677", - "row": 7174, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-03-26T00:00:00.000Z, - "order": "US-2017-141677", - "row": 7174, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7293, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-04T00:00:00.000Z, - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7310, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-10T00:00:00.000Z, - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-04-10T00:00:00.000Z, - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 7698, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-10-12T00:00:00.000Z, - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8621, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-06T00:00:00.000Z, - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8673, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-163265", - "row": 8673, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-02-16T00:00:00.000Z, - "order": "CA-2017-163265", - "row": 8673, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8697, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-15T00:00:00.000Z, - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8878, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 8958, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-12-25T00:00:00.000Z, - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 9473, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-05T00:00:00.000Z, - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 9584, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 9618, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "", - "row": 9619, - }, - Object { - "SUM(a.cnt)": "1", - "date": 1970-01-01T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9619, - }, - Object { - "SUM(a.cnt)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9619, - }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup: nested_rollup 1`] = ` -Array [ - Object { - "SUM(a.cnt)": "44", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 0, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 523, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 849, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 6651, - }, - Object { - "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, - }, +exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +Array [ Object { - "SUM(a.cnt)": "1", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, + "SUM(a.cnt)": "44", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 0, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7174, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-145142", + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, + "date": 2020-01-23T00:00:00.000Z, + "order": "CA-2017-145142", + "row": 523, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7293, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-107503", + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, + "date": 2020-01-01T00:00:00.000Z, + "order": "CA-2017-107503", + "row": 849, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7310, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-118437", + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, + "date": 2020-06-17T00:00:00.000Z, + "order": "CA-2017-118437", + "row": 1013, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7425, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-139661", + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, + "date": 2020-10-30T00:00:00.000Z, + "order": "CA-2017-139661", + "row": 1494, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 7698, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-133648", + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, + "date": 2020-06-25T00:00:00.000Z, + "order": "CA-2017-133648", + "row": 1995, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8425, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-138422", + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, + "date": 2020-09-23T00:00:00.000Z, + "order": "CA-2017-138422", + "row": 2329, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8621, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-140949", + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, + "date": 2020-03-17T00:00:00.000Z, + "order": "CA-2017-140949", + "row": 2455, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8673, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-149048", + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, + "date": 2020-05-13T00:00:00.000Z, + "order": "CA-2017-149048", + "row": 2595, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8697, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-112515", + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, + "date": 2020-09-17T00:00:00.000Z, + "order": "CA-2017-112515", + "row": 2655, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8878, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-123372", + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, + "date": 2020-11-28T00:00:00.000Z, + "order": "CA-2017-123372", + "row": 2661, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 8958, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-134915", + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, + "date": 2020-11-12T00:00:00.000Z, + "order": "CA-2017-134915", + "row": 2952, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 9473, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, + "date": 2020-10-19T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3059, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 9584, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, + "date": 2020-10-19T00:00:00.000Z, + "order": "CA-2017-131492", + "row": 3060, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 9618, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-132297", + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, + "date": 2020-05-27T00:00:00.000Z, + "order": "US-2017-132297", + "row": 3083, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "", - "rowId": 9619, + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3448, }, Object { "SUM(a.cnt)": "1", - "orderDate": 1970-01-01T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9619, + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-102554", + "row": 3448, }, Object { "SUM(a.cnt)": "1", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9619, - }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` -Array [ - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": 944.96, - "orderData": 2020-01-23T00:00:00.000Z, + "date": 2020-06-11T00:00:00.000Z, + "order": "CA-2017-102554", + "row": 3448, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "order": 946.792, - "orderData": 2020-01-01T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3717, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "order": 1041.06, - "orderData": 2020-06-17T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-144568", + "row": 3717, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "order": 1513.28, - "orderData": 2020-10-30T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-05-29T00:00:00.000Z, + "order": "CA-2017-144568", + "row": 3717, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2017.608, - "orderData": 2020-06-25T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 3934, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2357.704, - "orderData": 2020-09-23T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-123001", + "row": 3934, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 2598.2, - "orderData": 2020-03-17T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-09-02T00:00:00.000Z, + "order": "CA-2017-123001", + "row": 3934, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2956.92, - "orderData": 2020-05-13T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4012, }, Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": 3108.736, - "orderData": 2020-10-19T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-100811", + "row": 4012, }, Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": 3120.12, - "orderData": 2020-10-19T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-11-21T00:00:00.000Z, + "order": "CA-2017-100811", + "row": 4012, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "order": 3179.776, - "orderData": 2020-11-12T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4031, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "order": 3455.52, - "orderData": 2020-06-11T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-124296", + "row": 4031, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "order": 3764.1, - "orderData": 2020-05-29T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-12-24T00:00:00.000Z, + "order": "CA-2017-124296", + "row": 4031, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "order": 3952.8, - "orderData": 2020-09-02T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4161, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": 4090.592, - "orderData": 2020-11-21T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-115546", + "row": 4161, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "order": 4162.9400000000005, - "orderData": 2020-05-27T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-05-14T00:00:00.000Z, + "order": "CA-2017-115546", + "row": 4161, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 4318.84, - "orderData": 2020-11-11T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4227, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "order": 4496.76, - "orderData": 2020-12-24T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-120327", + "row": 4227, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "order": 5240.88, - "orderData": 2020-09-17T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-11-11T00:00:00.000Z, + "order": "CA-2017-120327", + "row": 4227, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 5240.9400000000005, - "orderData": 2020-05-14T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 4882, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 5366.5, - "orderData": 2020-12-14T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-143567", + "row": 4882, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "order": 6214.5, - "orderData": 2020-06-03T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-11-02T00:00:00.000Z, + "order": "CA-2017-143567", + "row": 4882, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": 6216.52, - "orderData": 2020-09-01T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 5220, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "order": 6220.424, - "orderData": 2020-12-01T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-145653", + "row": 5220, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "order": 6466.52, - "orderData": 2020-05-14T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-09-01T00:00:00.000Z, + "order": "CA-2017-145653", + "row": 5220, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 6620.780000000001, - "orderData": 2020-11-28T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 5277, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "order": 6631.8, - "orderData": 2020-12-02T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-147333", + "row": 5277, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "order": 6742.84, - "orderData": 2020-09-08T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-12-14T00:00:00.000Z, + "order": "CA-2017-147333", + "row": 5277, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 7338.26, - "orderData": 2020-06-10T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6125, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": 7498.344, - "orderData": 2020-04-10T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-145772", + "row": 6125, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 8591, - "orderData": 2020-12-04T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-06-03T00:00:00.000Z, + "order": "CA-2017-145772", + "row": 6125, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "order": 8682.12, - "orderData": 2020-11-06T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6205, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "order": 8709.736, - "orderData": 2020-02-16T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-145660", + "row": 6205, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9176.952, - "orderData": 2020-06-15T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-12-01T00:00:00.000Z, + "order": "CA-2017-145660", + "row": 6205, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9198, - "orderData": 2020-12-25T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6272, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9381.82, - "orderData": 2020-11-02T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-102379", + "row": 6272, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 9729.248, - "orderData": 2020-11-05T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-12-02T00:00:00.000Z, + "order": "CA-2017-102379", + "row": 6272, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", - "order": 9791.704, - "orderData": 2020-11-16T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6459, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "order": 9838, - "orderData": 2020-09-17T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-133361", + "row": 6459, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 10097.96, - "orderData": 2020-12-14T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-05-14T00:00:00.000Z, + "order": "US-2017-133361", + "row": 6459, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 10385.568, - "orderData": 2020-06-25T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 6651, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 11417.964, - "orderData": 2020-11-16T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-124779", + "row": 6651, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "order": 11973.92, - "orderData": 2020-03-26T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 2020-09-08T00:00:00.000Z, + "order": "US-2017-124779", + "row": 6651, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "order": 12734.8, - "orderData": 2020-10-12T00:00:00.000Z, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7174, }, -] -`; - -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` -Array [ Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": "CA-2017-145142", - "orderData": 2020-01-23T00:00:00.000Z, - "row": 523, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-141677", + "row": 7174, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "order": "CA-2017-107503", - "orderData": 2020-01-01T00:00:00.000Z, - "row": 849, + "SUM(a.cnt)": "1", + "date": 2020-03-26T00:00:00.000Z, + "order": "US-2017-141677", + "row": 7174, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "order": "CA-2017-118437", - "orderData": 2020-06-17T00:00:00.000Z, - "row": 1013, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7293, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "order": "CA-2017-139661", - "orderData": 2020-10-30T00:00:00.000Z, - "row": 1494, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-109183", + "row": 7293, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-133648", - "orderData": 2020-06-25T00:00:00.000Z, - "row": 1995, + "SUM(a.cnt)": "1", + "date": 2020-12-04T00:00:00.000Z, + "order": "CA-2017-109183", + "row": 7293, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-138422", - "orderData": 2020-09-23T00:00:00.000Z, - "row": 2329, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7310, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-140949", - "orderData": 2020-03-17T00:00:00.000Z, - "row": 2455, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-112172", + "row": 7310, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-149048", - "orderData": 2020-05-13T00:00:00.000Z, - "row": 2595, + "SUM(a.cnt)": "1", + "date": 2020-06-10T00:00:00.000Z, + "order": "CA-2017-112172", + "row": 7310, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "order": "CA-2017-112515", - "orderData": 2020-09-17T00:00:00.000Z, - "row": 2655, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-123372", - "orderData": 2020-11-28T00:00:00.000Z, - "row": 2661, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-135069", + "row": 7425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "order": "CA-2017-134915", - "orderData": 2020-11-12T00:00:00.000Z, - "row": 2952, + "SUM(a.cnt)": "1", + "date": 2020-04-10T00:00:00.000Z, + "order": "CA-2017-135069", + "row": 7425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": "CA-2017-131492", - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3059, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 7698, }, Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": "CA-2017-131492", - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3060, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-151799", + "row": 7698, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "order": "US-2017-132297", - "orderData": 2020-05-27T00:00:00.000Z, - "row": 3083, + "SUM(a.cnt)": "1", + "date": 2020-12-14T00:00:00.000Z, + "order": "CA-2017-151799", + "row": 7698, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "order": "CA-2017-102554", - "orderData": 2020-06-11T00:00:00.000Z, - "row": 3448, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "order": "CA-2017-144568", - "orderData": 2020-05-29T00:00:00.000Z, - "row": 3717, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-150091", + "row": 8425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "order": "CA-2017-123001", - "orderData": 2020-09-02T00:00:00.000Z, - "row": 3934, + "SUM(a.cnt)": "1", + "date": 2020-10-12T00:00:00.000Z, + "order": "CA-2017-150091", + "row": 8425, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": "CA-2017-100811", - "orderData": 2020-11-21T00:00:00.000Z, - "row": 4012, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8621, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "order": "CA-2017-124296", - "orderData": 2020-12-24T00:00:00.000Z, - "row": 4031, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "US-2017-119319", + "row": 8621, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-115546", - "orderData": 2020-05-14T00:00:00.000Z, - "row": 4161, + "SUM(a.cnt)": "1", + "date": 2020-11-06T00:00:00.000Z, + "order": "US-2017-119319", + "row": 8621, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-120327", - "orderData": 2020-11-11T00:00:00.000Z, - "row": 4227, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8673, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-143567", - "orderData": 2020-11-02T00:00:00.000Z, - "row": 4882, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-163265", + "row": 8673, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": "CA-2017-145653", - "orderData": 2020-09-01T00:00:00.000Z, - "row": 5220, + "SUM(a.cnt)": "1", + "date": 2020-02-16T00:00:00.000Z, + "order": "CA-2017-163265", + "row": 8673, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-147333", - "orderData": 2020-12-14T00:00:00.000Z, - "row": 5277, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8697, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "order": "CA-2017-145772", - "orderData": 2020-06-03T00:00:00.000Z, - "row": 6125, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-119284", + "row": 8697, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "order": "CA-2017-145660", - "orderData": 2020-12-01T00:00:00.000Z, - "row": 6205, + "SUM(a.cnt)": "1", + "date": 2020-06-15T00:00:00.000Z, + "order": "CA-2017-119284", + "row": 8697, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "order": "CA-2017-102379", - "orderData": 2020-12-02T00:00:00.000Z, - "row": 6272, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8878, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "order": "US-2017-133361", - "orderData": 2020-05-14T00:00:00.000Z, - "row": 6459, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-126928", + "row": 8878, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "order": "US-2017-124779", - "orderData": 2020-09-08T00:00:00.000Z, - "row": 6651, + "SUM(a.cnt)": "1", + "date": 2020-09-17T00:00:00.000Z, + "order": "CA-2017-126928", + "row": 8878, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "order": "US-2017-141677", - "orderData": 2020-03-26T00:00:00.000Z, - "row": 7174, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 8958, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-109183", - "orderData": 2020-12-04T00:00:00.000Z, - "row": 7293, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-105620", + "row": 8958, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-112172", - "orderData": 2020-06-10T00:00:00.000Z, - "row": 7310, + "SUM(a.cnt)": "1", + "date": 2020-12-25T00:00:00.000Z, + "order": "CA-2017-105620", + "row": 8958, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": "CA-2017-135069", - "orderData": 2020-04-10T00:00:00.000Z, - "row": 7425, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 9473, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-151799", - "orderData": 2020-12-14T00:00:00.000Z, - "row": 7698, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-102925", + "row": 9473, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "order": "CA-2017-150091", - "orderData": 2020-10-12T00:00:00.000Z, - "row": 8425, + "SUM(a.cnt)": "1", + "date": 2020-11-05T00:00:00.000Z, + "order": "CA-2017-102925", + "row": 9473, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "order": "US-2017-119319", - "orderData": 2020-11-06T00:00:00.000Z, - "row": 8621, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 9584, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "order": "CA-2017-163265", - "orderData": 2020-02-16T00:00:00.000Z, - "row": 8673, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-116127", + "row": 9584, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-119284", - "orderData": 2020-06-15T00:00:00.000Z, - "row": 8697, + "SUM(a.cnt)": "1", + "date": 2020-06-25T00:00:00.000Z, + "order": "CA-2017-116127", + "row": 9584, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "order": "CA-2017-126928", - "orderData": 2020-09-17T00:00:00.000Z, - "row": 8878, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 9618, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-105620", - "orderData": 2020-12-25T00:00:00.000Z, - "row": 8958, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "CA-2017-160633", + "row": 9618, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-102925", - "orderData": 2020-11-05T00:00:00.000Z, - "row": 9473, + "SUM(a.cnt)": "1", + "date": 2020-11-16T00:00:00.000Z, + "order": "CA-2017-160633", + "row": 9618, }, Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-116127", - "orderData": 2020-06-25T00:00:00.000Z, - "row": 9584, + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, + "order": "", + "row": 9619, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", + "SUM(a.cnt)": "1", + "date": 1970-01-01T00:00:00.000Z, "order": "CA-2017-160633", - "orderData": 2020-11-16T00:00:00.000Z, - "row": 9618, + "row": 9619, }, Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", + "SUM(a.cnt)": "1", + "date": 2020-11-16T00:00:00.000Z, "order": "CA-2017-160633", - "orderData": 2020-11-16T00:00:00.000Z, "row": 9619, }, ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup: nested_rollup 1`] = ` Array [ Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "44", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 0, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 523, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-145142", + "rowId": 523, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-01-23T00:00:00.000Z, "orderId": "CA-2017-145142", "rowId": 523, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 849, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-107503", + "rowId": 849, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-01-01T00:00:00.000Z, "orderId": "CA-2017-107503", "rowId": 849, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 1013, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-118437", + "rowId": 1013, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-17T00:00:00.000Z, "orderId": "CA-2017-118437", "rowId": 1013, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 1494, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-139661", + "rowId": 1494, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-10-30T00:00:00.000Z, "orderId": "CA-2017-139661", "rowId": 1494, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 1995, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-133648", + "rowId": 1995, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-25T00:00:00.000Z, "orderId": "CA-2017-133648", "rowId": 1995, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2329, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-138422", + "rowId": 2329, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-23T00:00:00.000Z, "orderId": "CA-2017-138422", "rowId": 2329, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2455, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-140949", + "rowId": 2455, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-03-17T00:00:00.000Z, "orderId": "CA-2017-140949", "rowId": 2455, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2595, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-149048", + "rowId": 2595, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-13T00:00:00.000Z, "orderId": "CA-2017-149048", "rowId": 2595, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2655, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-112515", + "rowId": 2655, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-17T00:00:00.000Z, "orderId": "CA-2017-112515", "rowId": 2655, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2661, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-123372", + "rowId": 2661, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-28T00:00:00.000Z, "orderId": "CA-2017-123372", "rowId": 2661, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 2952, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-134915", + "rowId": 2952, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-12T00:00:00.000Z, "orderId": "CA-2017-134915", "rowId": 2952, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3059, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3059, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-10-19T00:00:00.000Z, "orderId": "CA-2017-131492", "rowId": 3059, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3060, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-131492", + "rowId": 3060, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-10-19T00:00:00.000Z, "orderId": "CA-2017-131492", "rowId": 3060, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3083, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-132297", + "rowId": 3083, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-27T00:00:00.000Z, "orderId": "US-2017-132297", "rowId": 3083, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3448, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-102554", + "rowId": 3448, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-11T00:00:00.000Z, "orderId": "CA-2017-102554", "rowId": 3448, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3717, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-144568", + "rowId": 3717, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-29T00:00:00.000Z, "orderId": "CA-2017-144568", "rowId": 3717, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 3934, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-123001", + "rowId": 3934, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-02T00:00:00.000Z, "orderId": "CA-2017-123001", "rowId": 3934, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4012, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-100811", + "rowId": 4012, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-21T00:00:00.000Z, "orderId": "CA-2017-100811", "rowId": 4012, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4031, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-124296", + "rowId": 4031, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-24T00:00:00.000Z, "orderId": "CA-2017-124296", "rowId": 4031, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4161, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-115546", + "rowId": 4161, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-14T00:00:00.000Z, "orderId": "CA-2017-115546", "rowId": 4161, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4227, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-120327", + "rowId": 4227, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-11T00:00:00.000Z, "orderId": "CA-2017-120327", "rowId": 4227, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 4882, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-143567", + "rowId": 4882, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-02T00:00:00.000Z, "orderId": "CA-2017-143567", "rowId": 4882, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 5220, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-145653", + "rowId": 5220, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-01T00:00:00.000Z, "orderId": "CA-2017-145653", "rowId": 5220, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 5277, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-147333", + "rowId": 5277, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-14T00:00:00.000Z, "orderId": "CA-2017-147333", "rowId": 5277, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6125, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-145772", + "rowId": 6125, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-03T00:00:00.000Z, "orderId": "CA-2017-145772", "rowId": 6125, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6205, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-145660", + "rowId": 6205, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-01T00:00:00.000Z, "orderId": "CA-2017-145660", "rowId": 6205, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6272, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-102379", + "rowId": 6272, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-02T00:00:00.000Z, "orderId": "CA-2017-102379", "rowId": 6272, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6459, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-133361", + "rowId": 6459, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-05-14T00:00:00.000Z, "orderId": "US-2017-133361", "rowId": 6459, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 6651, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-124779", + "rowId": 6651, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-08T00:00:00.000Z, "orderId": "US-2017-124779", "rowId": 6651, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7174, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-141677", + "rowId": 7174, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-03-26T00:00:00.000Z, "orderId": "US-2017-141677", "rowId": 7174, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7293, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-109183", + "rowId": 7293, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-04T00:00:00.000Z, "orderId": "CA-2017-109183", "rowId": 7293, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7310, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-112172", + "rowId": 7310, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-10T00:00:00.000Z, "orderId": "CA-2017-112172", "rowId": 7310, }, Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-135069", + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 2020-04-10T00:00:00.000Z, + "orderId": "CA-2017-135069", + "rowId": 7425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 7698, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-151799", + "rowId": 7698, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", "orderDate": 2020-12-14T00:00:00.000Z, "orderId": "CA-2017-151799", "rowId": 7698, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8425, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-150091", + "rowId": 8425, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-10-12T00:00:00.000Z, "orderId": "CA-2017-150091", "rowId": 8425, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8621, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "US-2017-119319", + "rowId": 8621, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-06T00:00:00.000Z, "orderId": "US-2017-119319", "rowId": 8621, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8673, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-163265", + "rowId": 8673, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-02-16T00:00:00.000Z, "orderId": "CA-2017-163265", "rowId": 8673, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8697, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-119284", + "rowId": 8697, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-15T00:00:00.000Z, "orderId": "CA-2017-119284", "rowId": 8697, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8878, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-126928", + "rowId": 8878, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-09-17T00:00:00.000Z, "orderId": "CA-2017-126928", "rowId": 8878, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 8958, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-105620", + "rowId": 8958, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-12-25T00:00:00.000Z, "orderId": "CA-2017-105620", "rowId": 8958, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 9473, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-102925", + "rowId": 9473, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-05T00:00:00.000Z, "orderId": "CA-2017-102925", "rowId": 9473, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 9584, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-116127", + "rowId": 9584, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-06-25T00:00:00.000Z, "orderId": "CA-2017-116127", "rowId": 9584, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 9618, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9618, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-16T00:00:00.000Z, "orderId": "CA-2017-160633", "rowId": 9618, }, Object { - "SUM(ECommerce.count)": "1", + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "", + "rowId": 9619, + }, + Object { + "SUM(a.cnt)": "1", + "orderDate": 1970-01-01T00:00:00.000Z, + "orderId": "CA-2017-160633", + "rowId": 9619, + }, + Object { + "SUM(a.cnt)": "1", "orderDate": 2020-11-16T00:00:00.000Z, "orderId": "CA-2017-160633", "rowId": 9619, @@ -9685,6 +8027,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/clickhouse-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/clickhouse-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/clickhouse-driver querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-full.test.ts.snap index 3def993351ff1..dbf771bea59b9 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-full.test.ts.snap @@ -6003,6 +6003,14 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` +Array [ + Object { + "a0": null, + }, +] +`; + exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` Array [ Object { @@ -6011,6 +6019,15 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure 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/databricks-jdbc-driver export-bucket-azure SQL API: powerbi min max ungrouped flag: powerbi_min_max_ungrouped_flag 1`] = ` Array [ Object { @@ -6021,6 +6038,10 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: reuse params: reuse_params 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: ungrouped pre-agg: ungrouped_pre_agg 1`] = `Array []`; + exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure filtering Customers: contains + dimensions, first 1`] = ` Array [ Object { @@ -8296,6 +8317,14 @@ Array [ exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure filtering Products: startsWith filter + dimensions + order, third 1`] = `Array []`; +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure pre-aggregations Customers: running total without time dimension 1`] = ` +Array [ + Object { + "Customers.runningTotal": null, + }, +] +`; + exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying BigECommerce: null boolean 1`] = ` Array [ Object { @@ -8304,6 +8333,18 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying BigECommerce: null sum 1`] = ` +Array [ + Object { + "BigECommerce.totalSales": null, + }, +] +`; + +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying BigECommerce: partitioned pre-agg 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying BigECommerce: partitioned pre-agg with multi time dimension 1`] = `Array []`; + exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying BigECommerce: rolling count_distinct_approx window by 2 day 1`] = ` Array [ Object { @@ -11936,6 +11977,10 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying ECommerce: partitioned pre-agg 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying ECommerce: partitioned pre-agg higher granularity 1`] = `Array []`; + exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying Products: dimensions + order + limit + total 1`] = ` Array [ Object { @@ -12336,6 +12381,10 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = `Array []`; + exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-full.test.ts.snap index 5cd1703f18b4b..3141f2548c79f 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-full.test.ts.snap @@ -1,105 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, - Object { - }, -] -`; exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Complex Rollup: complex_rollup 1`] = ` Array [ Object { @@ -6319,14064 +6219,11 @@ Array [ }, 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 SQL API: Complex Rollup: complex_rollup 1`] = ` -Array [ - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": null, - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": null, - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": null, - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": null, - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": null, - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": null, - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": null, - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": null, - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": null, - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": null, - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": null, - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": null, - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": null, - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": null, - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": null, - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": null, - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": null, - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": null, - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": null, - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": null, - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": null, - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": null, - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": null, - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": null, - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": null, - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": null, - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": null, - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": null, - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": null, - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": null, - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": null, - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": null, - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": null, - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": null, - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": null, - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": null, - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": null, - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": null, - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": null, - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": null, - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": null, - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": null, - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": null, - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": null, - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": null, - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": null, - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": null, - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": null, - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": null, - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": null, - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": null, - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": null, - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": null, - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": null, - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": null, - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": null, - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": null, - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": null, - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": null, - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": null, - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": null, - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": null, - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": null, - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": null, - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": null, - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": null, - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": null, - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": null, - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": null, - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": null, - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": null, - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": null, - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": null, - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": null, - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": null, - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": null, - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": null, - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": null, - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": null, - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": null, - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": null, - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": null, - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": null, - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": null, - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": null, - "rowId": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": null, - "rowId": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": null, - "rowId": 9619, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": null, - "rowId": 9619, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9619, - }, - Object { - "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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` -Array [ - Object { - "SUM(a.count)": "44", - "date": null, - "order": null, - "row": null, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 523, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-01-23T00:00:00.000Z, - "order": "CA-2017-145142", - "row": 523, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 849, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-01-01T00:00:00.000Z, - "order": "CA-2017-107503", - "row": 849, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 1013, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-17T00:00:00.000Z, - "order": "CA-2017-118437", - "row": 1013, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 1494, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-30T00:00:00.000Z, - "order": "CA-2017-139661", - "row": 1494, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 1995, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-133648", - "row": 1995, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 2329, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-23T00:00:00.000Z, - "order": "CA-2017-138422", - "row": 2329, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 2455, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-03-17T00:00:00.000Z, - "order": "CA-2017-140949", - "row": 2455, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 2595, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-13T00:00:00.000Z, - "order": "CA-2017-149048", - "row": 2595, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 2655, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-112515", - "row": 2655, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 2661, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-28T00:00:00.000Z, - "order": "CA-2017-123372", - "row": 2661, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 2952, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-12T00:00:00.000Z, - "order": "CA-2017-134915", - "row": 2952, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 3059, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3059, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 3060, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-19T00:00:00.000Z, - "order": "CA-2017-131492", - "row": 3060, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 3083, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-27T00:00:00.000Z, - "order": "US-2017-132297", - "row": 3083, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 3448, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-11T00:00:00.000Z, - "order": "CA-2017-102554", - "row": 3448, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 3717, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-29T00:00:00.000Z, - "order": "CA-2017-144568", - "row": 3717, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 3934, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-02T00:00:00.000Z, - "order": "CA-2017-123001", - "row": 3934, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 4012, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-21T00:00:00.000Z, - "order": "CA-2017-100811", - "row": 4012, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 4031, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-24T00:00:00.000Z, - "order": "CA-2017-124296", - "row": 4031, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 4161, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "CA-2017-115546", - "row": 4161, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 4227, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-11T00:00:00.000Z, - "order": "CA-2017-120327", - "row": 4227, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 4882, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-02T00:00:00.000Z, - "order": "CA-2017-143567", - "row": 4882, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 5220, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-01T00:00:00.000Z, - "order": "CA-2017-145653", - "row": 5220, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 5277, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-147333", - "row": 5277, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 6125, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-03T00:00:00.000Z, - "order": "CA-2017-145772", - "row": 6125, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 6205, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-01T00:00:00.000Z, - "order": "CA-2017-145660", - "row": 6205, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 6272, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-02T00:00:00.000Z, - "order": "CA-2017-102379", - "row": 6272, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 6459, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-05-14T00:00:00.000Z, - "order": "US-2017-133361", - "row": 6459, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 6651, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-08T00:00:00.000Z, - "order": "US-2017-124779", - "row": 6651, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 7174, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "US-2017-141677", - "row": 7174, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-03-26T00:00:00.000Z, - "order": "US-2017-141677", - "row": 7174, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 7293, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-04T00:00:00.000Z, - "order": "CA-2017-109183", - "row": 7293, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 7310, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-10T00:00:00.000Z, - "order": "CA-2017-112172", - "row": 7310, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 7425, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-04-10T00:00:00.000Z, - "order": "CA-2017-135069", - "row": 7425, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 7698, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-14T00:00:00.000Z, - "order": "CA-2017-151799", - "row": 7698, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 8425, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-10-12T00:00:00.000Z, - "order": "CA-2017-150091", - "row": 8425, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 8621, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-06T00:00:00.000Z, - "order": "US-2017-119319", - "row": 8621, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 8673, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-163265", - "row": 8673, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-02-16T00:00:00.000Z, - "order": "CA-2017-163265", - "row": 8673, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 8697, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-15T00:00:00.000Z, - "order": "CA-2017-119284", - "row": 8697, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 8878, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-09-17T00:00:00.000Z, - "order": "CA-2017-126928", - "row": 8878, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 8958, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-12-25T00:00:00.000Z, - "order": "CA-2017-105620", - "row": 8958, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 9473, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-05T00:00:00.000Z, - "order": "CA-2017-102925", - "row": 9473, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 9584, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-06-25T00:00:00.000Z, - "order": "CA-2017-116127", - "row": 9584, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 9618, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9618, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": null, - "row": 9619, - }, - Object { - "SUM(a.count)": "1", - "date": null, - "order": "CA-2017-160633", - "row": 9619, - }, - Object { - "SUM(a.count)": "1", - "date": 2020-11-16T00:00:00.000Z, - "order": "CA-2017-160633", - "row": 9619, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` -Array [ - Object { - "SUM(ECommerce.count)": "44", - "city": null, - "order": null, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 944.96, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 944.96, - "orderData": 2020-01-23T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": 944.96, - "orderData": 2020-01-23T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 946.792, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 946.792, - "orderData": 2020-01-01T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "order": 946.792, - "orderData": 2020-01-01T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 1041.06, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 1041.06, - "orderData": 2020-06-17T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "order": 1041.06, - "orderData": 2020-06-17T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 1513.28, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 1513.28, - "orderData": 2020-10-30T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "order": 1513.28, - "orderData": 2020-10-30T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 2017.608, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 2017.608, - "orderData": 2020-06-25T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2017.608, - "orderData": 2020-06-25T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 2357.704, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 2357.704, - "orderData": 2020-09-23T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2357.704, - "orderData": 2020-09-23T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 2598.2, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 2598.2, - "orderData": 2020-03-17T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 2598.2, - "orderData": 2020-03-17T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 2956.92, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 2956.92, - "orderData": 2020-05-13T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 2956.92, - "orderData": 2020-05-13T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3108.736, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3108.736, - "orderData": 2020-10-19T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": 3108.736, - "orderData": 2020-10-19T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3120.12, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3120.12, - "orderData": 2020-10-19T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": 3120.12, - "orderData": 2020-10-19T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3179.776, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3179.776, - "orderData": 2020-11-12T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "order": 3179.776, - "orderData": 2020-11-12T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3455.52, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3455.52, - "orderData": 2020-06-11T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "order": 3455.52, - "orderData": 2020-06-11T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3764.1, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3764.1, - "orderData": 2020-05-29T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "order": 3764.1, - "orderData": 2020-05-29T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3952.8, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 3952.8, - "orderData": 2020-09-02T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "order": 3952.8, - "orderData": 2020-09-02T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 4090.592, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 4090.592, - "orderData": 2020-11-21T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": 4090.592, - "orderData": 2020-11-21T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 4162.94, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 4162.94, - "orderData": 2020-05-27T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "order": 4162.94, - "orderData": 2020-05-27T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 4318.84, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 4318.84, - "orderData": 2020-11-11T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 4318.84, - "orderData": 2020-11-11T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 4496.76, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 4496.76, - "orderData": 2020-12-24T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "order": 4496.76, - "orderData": 2020-12-24T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 5240.88, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 5240.88, - "orderData": 2020-09-17T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "order": 5240.88, - "orderData": 2020-09-17T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 5240.94, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 5240.94, - "orderData": 2020-05-14T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 5240.94, - "orderData": 2020-05-14T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 5366.5, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 5366.5, - "orderData": 2020-12-14T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 5366.5, - "orderData": 2020-12-14T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6214.5, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6214.5, - "orderData": 2020-06-03T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "order": 6214.5, - "orderData": 2020-06-03T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6216.52, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6216.52, - "orderData": 2020-09-01T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": 6216.52, - "orderData": 2020-09-01T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6220.424, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6220.424, - "orderData": 2020-12-01T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "order": 6220.424, - "orderData": 2020-12-01T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6466.52, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6466.52, - "orderData": 2020-05-14T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "order": 6466.52, - "orderData": 2020-05-14T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6620.78, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6620.78, - "orderData": 2020-11-28T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 6620.78, - "orderData": 2020-11-28T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6631.8, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6631.8, - "orderData": 2020-12-02T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "order": 6631.8, - "orderData": 2020-12-02T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6742.84, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 6742.84, - "orderData": 2020-09-08T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "order": 6742.84, - "orderData": 2020-09-08T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 7338.26, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 7338.26, - "orderData": 2020-06-10T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 7338.26, - "orderData": 2020-06-10T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 7498.344, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 7498.344, - "orderData": 2020-04-10T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": 7498.344, - "orderData": 2020-04-10T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 8591, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 8591, - "orderData": 2020-12-04T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 8591, - "orderData": 2020-12-04T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 8682.12, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 8682.12, - "orderData": 2020-11-06T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "order": 8682.12, - "orderData": 2020-11-06T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 8709.736, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 8709.736, - "orderData": 2020-02-16T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "order": 8709.736, - "orderData": 2020-02-16T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9176.952, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9176.952, - "orderData": 2020-06-15T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9176.952, - "orderData": 2020-06-15T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9198, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9198, - "orderData": 2020-12-25T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9198, - "orderData": 2020-12-25T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9381.82, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9381.82, - "orderData": 2020-11-02T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 9381.82, - "orderData": 2020-11-02T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9729.248, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9729.248, - "orderData": 2020-11-05T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 9729.248, - "orderData": 2020-11-05T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9791.704, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9791.704, - "orderData": 2020-11-16T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", - "order": 9791.704, - "orderData": 2020-11-16T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9838, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 9838, - "orderData": 2020-09-17T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "order": 9838, - "orderData": 2020-09-17T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 10097.96, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 10097.96, - "orderData": 2020-12-14T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 10097.96, - "orderData": 2020-12-14T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 10385.568, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 10385.568, - "orderData": 2020-06-25T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": 10385.568, - "orderData": 2020-06-25T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 11417.964, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 11417.964, - "orderData": 2020-11-16T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": 11417.964, - "orderData": 2020-11-16T00:00:00.000Z, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 11973.92, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 11973.92, - "orderData": 2020-03-26T00: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": null, - "order": 12734.8, - "orderData": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": 12734.8, - "orderData": 2020-10-12T00: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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` -Array [ - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-01-01T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "order": null, - "orderData": 2020-01-01T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-01-23T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": null, - "orderData": 2020-01-23T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-02-16T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "order": null, - "orderData": 2020-02-16T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-03-17T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-03-17T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-03-26T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "order": null, - "orderData": 2020-03-26T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-04-10T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": null, - "orderData": 2020-04-10T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-05-13T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-05-13T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "order": null, - "orderData": 2020-05-14T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "order": null, - "orderData": 2020-05-14T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-05-14T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-05-27T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "order": null, - "orderData": 2020-05-27T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-05-29T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "order": null, - "orderData": 2020-05-29T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-03T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "order": null, - "orderData": 2020-06-03T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-10T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-06-10T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-11T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "order": null, - "orderData": 2020-06-11T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-15T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-06-15T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-17T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "order": null, - "orderData": 2020-06-17T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "order": null, - "orderData": 2020-06-25T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-06-25T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-06-25T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-01T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": null, - "orderData": 2020-09-01T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-02T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "order": null, - "orderData": 2020-09-02T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-08T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "order": null, - "orderData": 2020-09-08T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "order": null, - "orderData": 2020-09-17T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "order": null, - "orderData": 2020-09-17T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "order": null, - "orderData": 2020-09-17T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-23T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-09-23T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-10-12T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "order": null, - "orderData": 2020-10-12T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "order": null, - "orderData": 2020-10-19T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": "San Francisco", - "order": null, - "orderData": 2020-10-19T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-10-30T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "order": null, - "orderData": 2020-10-30T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-02T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-11-02T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-05T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-11-05T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-06T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "order": null, - "orderData": 2020-11-06T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-11T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-11-11T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-12T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "order": null, - "orderData": 2020-11-12T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "order": null, - "orderData": 2020-11-16T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", - "order": null, - "orderData": 2020-11-16T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-11-16T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-21T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": null, - "orderData": 2020-11-21T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-28T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-11-28T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-01T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "order": null, - "orderData": 2020-12-01T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-02T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "order": null, - "orderData": 2020-12-02T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-04T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-12-04T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": null, - "order": null, - "orderData": 2020-12-14T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "2", - "city": "Columbus", - "order": null, - "orderData": 2020-12-14T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-24T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "order": null, - "orderData": 2020-12-24T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-25T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-12-25T00:00:00.000Z, - "row": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-01-23T00:00:00.000Z, - "row": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": null, - "orderData": 2020-01-23T00:00:00.000Z, - "row": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-145142", - "orderData": 2020-01-23T00:00:00.000Z, - "row": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": "CA-2017-145142", - "orderData": 2020-01-23T00:00:00.000Z, - "row": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-01-01T00:00:00.000Z, - "row": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "order": null, - "orderData": 2020-01-01T00:00:00.000Z, - "row": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-107503", - "orderData": 2020-01-01T00:00:00.000Z, - "row": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lorain", - "order": "CA-2017-107503", - "orderData": 2020-01-01T00:00:00.000Z, - "row": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-17T00:00:00.000Z, - "row": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "order": null, - "orderData": 2020-06-17T00:00:00.000Z, - "row": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-118437", - "orderData": 2020-06-17T00:00:00.000Z, - "row": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Olympia", - "order": "CA-2017-118437", - "orderData": 2020-06-17T00:00:00.000Z, - "row": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-10-30T00:00:00.000Z, - "row": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "order": null, - "orderData": 2020-10-30T00:00:00.000Z, - "row": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-139661", - "orderData": 2020-10-30T00:00:00.000Z, - "row": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Vancouver", - "order": "CA-2017-139661", - "orderData": 2020-10-30T00:00:00.000Z, - "row": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-25T00:00:00.000Z, - "row": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-06-25T00:00:00.000Z, - "row": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-133648", - "orderData": 2020-06-25T00:00:00.000Z, - "row": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-133648", - "orderData": 2020-06-25T00:00:00.000Z, - "row": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-23T00:00:00.000Z, - "row": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-09-23T00:00:00.000Z, - "row": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-138422", - "orderData": 2020-09-23T00:00:00.000Z, - "row": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-138422", - "orderData": 2020-09-23T00:00:00.000Z, - "row": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-03-17T00:00:00.000Z, - "row": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-03-17T00:00:00.000Z, - "row": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-140949", - "orderData": 2020-03-17T00:00:00.000Z, - "row": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-140949", - "orderData": 2020-03-17T00:00:00.000Z, - "row": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-05-13T00:00:00.000Z, - "row": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-05-13T00:00:00.000Z, - "row": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-149048", - "orderData": 2020-05-13T00:00:00.000Z, - "row": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-149048", - "orderData": 2020-05-13T00:00:00.000Z, - "row": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-17T00:00:00.000Z, - "row": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "order": null, - "orderData": 2020-09-17T00:00:00.000Z, - "row": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-112515", - "orderData": 2020-09-17T00:00:00.000Z, - "row": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Provo", - "order": "CA-2017-112515", - "orderData": 2020-09-17T00:00:00.000Z, - "row": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-28T00:00:00.000Z, - "row": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-11-28T00:00:00.000Z, - "row": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-123372", - "orderData": 2020-11-28T00:00:00.000Z, - "row": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-123372", - "orderData": 2020-11-28T00:00:00.000Z, - "row": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-12T00:00:00.000Z, - "row": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "order": null, - "orderData": 2020-11-12T00:00:00.000Z, - "row": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-134915", - "orderData": 2020-11-12T00:00:00.000Z, - "row": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Glendale", - "order": "CA-2017-134915", - "orderData": 2020-11-12T00:00:00.000Z, - "row": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": null, - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-131492", - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": "CA-2017-131492", - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": null, - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-131492", - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "San Francisco", - "order": "CA-2017-131492", - "orderData": 2020-10-19T00:00:00.000Z, - "row": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-05-27T00:00:00.000Z, - "row": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "order": null, - "orderData": 2020-05-27T00:00:00.000Z, - "row": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "US-2017-132297", - "orderData": 2020-05-27T00:00:00.000Z, - "row": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Louisville", - "order": "US-2017-132297", - "orderData": 2020-05-27T00:00:00.000Z, - "row": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-11T00:00:00.000Z, - "row": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "order": null, - "orderData": 2020-06-11T00:00:00.000Z, - "row": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-102554", - "orderData": 2020-06-11T00:00:00.000Z, - "row": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Auburn", - "order": "CA-2017-102554", - "orderData": 2020-06-11T00:00:00.000Z, - "row": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-05-29T00:00:00.000Z, - "row": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "order": null, - "orderData": 2020-05-29T00:00:00.000Z, - "row": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-144568", - "orderData": 2020-05-29T00:00:00.000Z, - "row": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Omaha", - "order": "CA-2017-144568", - "orderData": 2020-05-29T00:00:00.000Z, - "row": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-02T00:00:00.000Z, - "row": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "order": null, - "orderData": 2020-09-02T00:00:00.000Z, - "row": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-123001", - "orderData": 2020-09-02T00:00:00.000Z, - "row": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bakersfield", - "order": "CA-2017-123001", - "orderData": 2020-09-02T00:00:00.000Z, - "row": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-21T00:00:00.000Z, - "row": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": null, - "orderData": 2020-11-21T00:00:00.000Z, - "row": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-100811", - "orderData": 2020-11-21T00:00:00.000Z, - "row": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": "CA-2017-100811", - "orderData": 2020-11-21T00:00:00.000Z, - "row": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-24T00:00:00.000Z, - "row": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "order": null, - "orderData": 2020-12-24T00:00:00.000Z, - "row": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-124296", - "orderData": 2020-12-24T00:00:00.000Z, - "row": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lafayette", - "order": "CA-2017-124296", - "orderData": 2020-12-24T00:00:00.000Z, - "row": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-05-14T00:00:00.000Z, - "row": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-05-14T00:00:00.000Z, - "row": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-115546", - "orderData": 2020-05-14T00:00:00.000Z, - "row": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": "CA-2017-115546", - "orderData": 2020-05-14T00:00:00.000Z, - "row": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-11T00:00:00.000Z, - "row": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-11-11T00:00:00.000Z, - "row": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-120327", - "orderData": 2020-11-11T00:00:00.000Z, - "row": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-120327", - "orderData": 2020-11-11T00:00:00.000Z, - "row": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-11-02T00:00:00.000Z, - "row": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-11-02T00:00:00.000Z, - "row": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-143567", - "orderData": 2020-11-02T00:00:00.000Z, - "row": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-143567", - "orderData": 2020-11-02T00:00:00.000Z, - "row": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-01T00:00:00.000Z, - "row": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": null, - "orderData": 2020-09-01T00:00:00.000Z, - "row": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-145653", - "orderData": 2020-09-01T00:00:00.000Z, - "row": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Detroit", - "order": "CA-2017-145653", - "orderData": 2020-09-01T00:00:00.000Z, - "row": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-14T00:00:00.000Z, - "row": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-12-14T00:00:00.000Z, - "row": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-147333", - "orderData": 2020-12-14T00:00:00.000Z, - "row": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": "CA-2017-147333", - "orderData": 2020-12-14T00:00:00.000Z, - "row": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-03T00:00:00.000Z, - "row": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "order": null, - "orderData": 2020-06-03T00:00:00.000Z, - "row": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-145772", - "orderData": 2020-06-03T00:00:00.000Z, - "row": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Los Angeles", - "order": "CA-2017-145772", - "orderData": 2020-06-03T00:00:00.000Z, - "row": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-01T00:00:00.000Z, - "row": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "order": null, - "orderData": 2020-12-01T00:00:00.000Z, - "row": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-145660", - "orderData": 2020-12-01T00:00:00.000Z, - "row": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Marion", - "order": "CA-2017-145660", - "orderData": 2020-12-01T00:00:00.000Z, - "row": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-12-02T00:00:00.000Z, - "row": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "order": null, - "orderData": 2020-12-02T00:00:00.000Z, - "row": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-102379", - "orderData": 2020-12-02T00:00:00.000Z, - "row": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Oakland", - "order": "CA-2017-102379", - "orderData": 2020-12-02T00:00:00.000Z, - "row": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-05-14T00:00:00.000Z, - "row": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "order": null, - "orderData": 2020-05-14T00:00:00.000Z, - "row": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "US-2017-133361", - "orderData": 2020-05-14T00:00:00.000Z, - "row": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Baltimore", - "order": "US-2017-133361", - "orderData": 2020-05-14T00:00:00.000Z, - "row": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-09-08T00:00:00.000Z, - "row": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "order": null, - "orderData": 2020-09-08T00:00:00.000Z, - "row": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "US-2017-124779", - "orderData": 2020-09-08T00:00:00.000Z, - "row": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Arlington", - "order": "US-2017-124779", - "orderData": 2020-09-08T00:00:00.000Z, - "row": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-03-26T00:00:00.000Z, - "row": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Houston", - "order": null, - "orderData": 2020-03-26T00:00:00.000Z, - "row": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "US-2017-141677", - "orderData": 2020-03-26T00:00:00.000Z, - "row": 7174, - }, - Object { - "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": null, - "order": null, - "orderData": 2020-12-04T00:00:00.000Z, - "row": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-12-04T00:00:00.000Z, - "row": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-109183", - "orderData": 2020-12-04T00:00:00.000Z, - "row": 7293, - }, - 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": null, - "order": null, - "orderData": 2020-06-10T00:00:00.000Z, - "row": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-06-10T00:00:00.000Z, - "row": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-112172", - "orderData": 2020-06-10T00:00:00.000Z, - "row": 7310, - }, - 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": null, - "order": null, - "orderData": 2020-04-10T00:00:00.000Z, - "row": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Philadelphia", - "order": null, - "orderData": 2020-04-10T00:00:00.000Z, - "row": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-135069", - "orderData": 2020-04-10T00:00:00.000Z, - "row": 7425, - }, - 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": null, - "order": null, - "orderData": 2020-12-14T00:00:00.000Z, - "row": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-12-14T00:00:00.000Z, - "row": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-151799", - "orderData": 2020-12-14T00:00:00.000Z, - "row": 7698, - }, - 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": null, - "order": null, - "orderData": 2020-10-12T00:00:00.000Z, - "row": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Lakewood", - "order": null, - "orderData": 2020-10-12T00:00:00.000Z, - "row": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-150091", - "orderData": 2020-10-12T00:00:00.000Z, - "row": 8425, - }, - 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": null, - "order": null, - "orderData": 2020-11-06T00:00:00.000Z, - "row": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Dallas", - "order": null, - "orderData": 2020-11-06T00:00:00.000Z, - "row": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "US-2017-119319", - "orderData": 2020-11-06T00:00:00.000Z, - "row": 8621, - }, - 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": null, - "order": null, - "orderData": 2020-02-16T00:00:00.000Z, - "row": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Decatur", - "order": null, - "orderData": 2020-02-16T00:00:00.000Z, - "row": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-163265", - "orderData": 2020-02-16T00:00:00.000Z, - "row": 8673, - }, - 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": null, - "order": null, - "orderData": 2020-06-15T00:00:00.000Z, - "row": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-06-15T00:00:00.000Z, - "row": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-119284", - "orderData": 2020-06-15T00:00:00.000Z, - "row": 8697, - }, - 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": null, - "order": null, - "orderData": 2020-09-17T00:00:00.000Z, - "row": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Morristown", - "order": null, - "orderData": 2020-09-17T00:00:00.000Z, - "row": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-126928", - "orderData": 2020-09-17T00:00:00.000Z, - "row": 8878, - }, - 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": null, - "order": null, - "orderData": 2020-12-25T00:00:00.000Z, - "row": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-12-25T00:00:00.000Z, - "row": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-105620", - "orderData": 2020-12-25T00:00:00.000Z, - "row": 8958, - }, - 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": null, - "order": null, - "orderData": 2020-11-05T00:00:00.000Z, - "row": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-11-05T00:00:00.000Z, - "row": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "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-102925", - "orderData": 2020-11-05T00:00:00.000Z, - "row": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": null, - "orderData": 2020-06-25T00:00:00.000Z, - "row": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "New York City", - "order": null, - "orderData": 2020-06-25T00:00:00.000Z, - "row": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-116127", - "orderData": 2020-06-25T00:00:00.000Z, - "row": 9584, - }, - 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": null, - "order": null, - "orderData": 2020-11-16T00:00:00.000Z, - "row": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Columbus", - "order": null, - "orderData": 2020-11-16T00:00:00.000Z, - "row": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-160633", - "orderData": 2020-11-16T00:00:00.000Z, - "row": 9618, - }, - 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": null, - "order": null, - "orderData": 2020-11-16T00:00:00.000Z, - "row": 9619, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": "Bowling", - "order": null, - "orderData": 2020-11-16T00:00:00.000Z, - "row": 9619, - }, - Object { - "SUM(ECommerce.count)": "1", - "city": null, - "order": "CA-2017-160633", - "orderData": 2020-11-16T00:00:00.000Z, - "row": 9619, - }, - 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 SQL API: Simple Rollup: simple_rollup 1`] = ` -Array [ - Object { - "SUM(ECommerce.count)": "44", - "orderDate": null, - "orderId": null, - "rowId": null, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-01-23T00:00:00.000Z, - "orderId": "CA-2017-145142", - "rowId": 523, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-01-01T00:00:00.000Z, - "orderId": "CA-2017-107503", - "rowId": 849, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-06-17T00:00:00.000Z, - "orderId": "CA-2017-118437", - "rowId": 1013, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-10-30T00:00:00.000Z, - "orderId": "CA-2017-139661", - "rowId": 1494, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-133648", - "rowId": 1995, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-09-23T00:00:00.000Z, - "orderId": "CA-2017-138422", - "rowId": 2329, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-03-17T00:00:00.000Z, - "orderId": "CA-2017-140949", - "rowId": 2455, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-05-13T00:00:00.000Z, - "orderId": "CA-2017-149048", - "rowId": 2595, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-112515", - "rowId": 2655, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-28T00:00:00.000Z, - "orderId": "CA-2017-123372", - "rowId": 2661, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-12T00:00:00.000Z, - "orderId": "CA-2017-134915", - "rowId": 2952, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3059, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-10-19T00:00:00.000Z, - "orderId": "CA-2017-131492", - "rowId": 3060, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-05-27T00:00:00.000Z, - "orderId": "US-2017-132297", - "rowId": 3083, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-06-11T00:00:00.000Z, - "orderId": "CA-2017-102554", - "rowId": 3448, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-05-29T00:00:00.000Z, - "orderId": "CA-2017-144568", - "rowId": 3717, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-09-02T00:00:00.000Z, - "orderId": "CA-2017-123001", - "rowId": 3934, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-21T00:00:00.000Z, - "orderId": "CA-2017-100811", - "rowId": 4012, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-12-24T00:00:00.000Z, - "orderId": "CA-2017-124296", - "rowId": 4031, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "CA-2017-115546", - "rowId": 4161, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-11T00:00:00.000Z, - "orderId": "CA-2017-120327", - "rowId": 4227, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-02T00:00:00.000Z, - "orderId": "CA-2017-143567", - "rowId": 4882, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-09-01T00:00:00.000Z, - "orderId": "CA-2017-145653", - "rowId": 5220, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-147333", - "rowId": 5277, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-06-03T00:00:00.000Z, - "orderId": "CA-2017-145772", - "rowId": 6125, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-12-01T00:00:00.000Z, - "orderId": "CA-2017-145660", - "rowId": 6205, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-12-02T00:00:00.000Z, - "orderId": "CA-2017-102379", - "rowId": 6272, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-05-14T00:00:00.000Z, - "orderId": "US-2017-133361", - "rowId": 6459, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "US-2017-124779", - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-09-08T00:00:00.000Z, - "orderId": "US-2017-124779", - "rowId": 6651, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "US-2017-141677", - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-03-26T00:00:00.000Z, - "orderId": "US-2017-141677", - "rowId": 7174, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-109183", - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-12-04T00:00:00.000Z, - "orderId": "CA-2017-109183", - "rowId": 7293, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-112172", - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-06-10T00:00:00.000Z, - "orderId": "CA-2017-112172", - "rowId": 7310, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-135069", - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-04-10T00:00:00.000Z, - "orderId": "CA-2017-135069", - "rowId": 7425, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-151799", - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-12-14T00:00:00.000Z, - "orderId": "CA-2017-151799", - "rowId": 7698, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-150091", - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-10-12T00:00:00.000Z, - "orderId": "CA-2017-150091", - "rowId": 8425, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "US-2017-119319", - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-06T00:00:00.000Z, - "orderId": "US-2017-119319", - "rowId": 8621, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-163265", - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-02-16T00:00:00.000Z, - "orderId": "CA-2017-163265", - "rowId": 8673, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-119284", - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-06-15T00:00:00.000Z, - "orderId": "CA-2017-119284", - "rowId": 8697, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-126928", - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-09-17T00:00:00.000Z, - "orderId": "CA-2017-126928", - "rowId": 8878, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-105620", - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-12-25T00:00:00.000Z, - "orderId": "CA-2017-105620", - "rowId": 8958, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-102925", - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-05T00:00:00.000Z, - "orderId": "CA-2017-102925", - "rowId": 9473, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-116127", - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-06-25T00:00:00.000Z, - "orderId": "CA-2017-116127", - "rowId": 9584, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-160633", - "rowId": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9618, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": null, - "rowId": 9619, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": null, - "orderId": "CA-2017-160633", - "rowId": 9619, - }, - Object { - "SUM(ECommerce.count)": "1", - "orderDate": 2020-11-16T00:00:00.000Z, - "orderId": "CA-2017-160633", - "rowId": 9619, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` -Array [ - Object { - "a0": 41, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` -Array [ - Object { - "SUM(BigECommerce.percentageOfTotalForStatus)": 100, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 SQL API: reuse params: reuse_params 1`] = ` -Array [ - Object { - "c0": 2020-01-01T00:00:00.000Z, - "m0": 17372, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering Customers: contains + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering Customers: endsWith filter + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering Customers: notEndsWith filter + dimensions, second 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering Customers: startsWith + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering ECommerce: contains dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering ECommerce: endsWith + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering ECommerce: startsWith + dimensions, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering Products: contains + dimensions + order, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering Products: contains with special chars + dimensions 1`] = ` -Array [ - Object { - "Products.productName": "Logitech di_Novo Edge Keyboard", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering Products: endsWith filter + dimensions + order, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 filtering Products: startsWith filter + dimensions + order, third 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 pre-aggregations Customers: running total without time dimension 1`] = ` -Array [ - Object { - "Customers.runningTotal": "41", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying BigECommerce: null boolean 1`] = ` -Array [ - Object { - "BigECommerce.returning": null, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying BigECommerce: null sum 1`] = ` -Array [ - Object { - "BigECommerce.totalSales": null, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "1", - }, - Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, - Object { - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Month": "2", - }, - Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", - }, - Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", - }, - Object { - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", - }, - Object { - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "6", - }, - Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "12", - }, - Object { - "BigECommerce.orderDate": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "7", - }, - Object { - "BigECommerce.orderDate": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "0", - }, - Object { - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "6", - }, - Object { - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "9", - }, - Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "11", - }, - Object { - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "15", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Week": "1", - }, - Object { - "BigECommerce.orderDate": "2020-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "1", - }, - Object { - "BigECommerce.orderDate": "2020-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "1", - }, - Object { - "BigECommerce.orderDate": "2020-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", - }, - Object { - "BigECommerce.orderDate": "2020-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", - }, - Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "3", - }, - Object { - "BigECommerce.orderDate": "2020-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", - }, - Object { - "BigECommerce.orderDate": "2020-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", - }, - Object { - "BigECommerce.orderDate": "2020-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "3", - }, - Object { - "BigECommerce.orderDate": "2020-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", - }, - Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", - }, - Object { - "BigECommerce.orderDate": "2020-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying Customers: dimensions + order + total + offset 1`] = ` -Array [ - Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying ECommerce: dimensions + order + total + offset 1`] = ` -Array [ - 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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.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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 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.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.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.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.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.totalQuantity": "3", - }, - Object { - "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.totalQuantity": "2", - }, - Object { - "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.totalQuantity": "5", - }, - Object { - "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.totalQuantity": "2", - }, - Object { - "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.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.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.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.totalQuantity": "4", - }, - Object { - "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.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.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.totalQuantity": "5", - }, - Object { - "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.orderDate": "2020-12-01T00:00:00.000", - "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", - "ECommerce.totalQuantity": "2", - }, - Object { - "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.totalQuantity": "5", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying ECommerce: partitioned pre-agg higher granularity 1`] = ` -Array [ - Object { - "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.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.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", - "ECommerce.productName": "Canon PC1080F Personal Copier", - "ECommerce.totalQuantity": "7", - }, - Object { - "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.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.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.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.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.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.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.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.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.totalQuantity": "6", - }, - Object { - "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.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.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.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.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", - "ECommerce.productName": "Okidata C610n Printer", - "ECommerce.totalQuantity": "2", - }, - Object { - "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.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", - "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", - "ECommerce.totalQuantity": "11", - }, - Object { - "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", - "ECommerce.productName": "Project Tote Personal File", - "ECommerce.totalQuantity": "1", - }, - Object { - "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.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.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.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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying Products: dimensions + order + limit + total 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", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying Products: dimensions + order + limit 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", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying Products: dimensions + order + total 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying Products: dimensions + order 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying custom granularities ECommerce: count by half_year + dimension 1`] = ` -Array [ - Object { - "ECommerce.city": "Baltimore", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Decatur", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Detroit", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Houston", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lorain", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Louisville", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "New York City", - "ECommerce.count": "2", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Omaha", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Arlington", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Auburn", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Bakersfield", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Bowling", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "7", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Dallas", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Detroit", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Glendale", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lakewood", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Los Angeles", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Marion", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Morristown", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "New York City", - "ECommerce.count": "3", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Olympia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Provo", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "San Francisco", - "ECommerce.count": "2", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Vancouver", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "4", - "ECommerce.customOrderDateNoPreAgg": "2021-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2021-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lafayette", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2021-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2021-01-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Oakland", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2021-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2021-01-01T00:00:00.000", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying custom granularities ECommerce: count by half_year + no dimension 1`] = ` -Array [ - Object { - "ECommerce.count": "11", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", - }, - Object { - "ECommerce.count": "27", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", - }, - Object { - "ECommerce.count": "6", - "ECommerce.customOrderDateNoPreAgg": "2021-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2021-01-01T00:00:00.000", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying custom granularities ECommerce: count by half_year_by_1st_april + dimension 1`] = ` -Array [ - Object { - "ECommerce.city": "Decatur", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Detroit", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lorain", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Auburn", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Baltimore", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "3", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Detroit", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Houston", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Los Angeles", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Louisville", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "New York City", - "ECommerce.count": "4", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Olympia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Omaha", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Arlington", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Bakersfield", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Bowling", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "9", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Dallas", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Glendale", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lafayette", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lakewood", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Marion", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Morristown", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "New York City", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Oakland", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Provo", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "San Francisco", - "ECommerce.count": "2", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Vancouver", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying custom granularities ECommerce: count by half_year_by_1st_april + no dimension 1`] = ` -Array [ - Object { - "ECommerce.count": "3", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.count": "16", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.count": "25", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading 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/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByTrailing 1`] = ` -Array [ - Object { - "ECommerce.customOrderDateNoPreAgg": "2019-12-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2019-12-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "3", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-02-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-02-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "3", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-04-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "12", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-06-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-06-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": null, - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-08-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-08-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "10", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-10-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "16", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-12-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-12-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": null, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 export-bucket-s3 querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByUnbounded 1`] = ` -Array [ - Object { - "ECommerce.customOrderDateNoPreAgg": "2019-12-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2019-12-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "3", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-02-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-02-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "6", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-04-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "18", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-06-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-06-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "18", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-08-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-08-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "28", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-10-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "44", + "totalSales": 3.76, }, Object { - "ECommerce.customOrderDateNoPreAgg": "2020-12-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-12-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "44", + "productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "totalSales": null, }, ] `; @@ -27670,6 +13517,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { @@ -27913,195 +13983,295 @@ Array [ "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", }, + Object { "ECommerce.city": "Columbus", "ECommerce.count": "3", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "Detroit", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "Houston", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "Los Angeles", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "Louisville", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "New York City", "ECommerce.count": "4", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "Olympia", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "Omaha", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "Philadelphia", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.city": "Arlington", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Bakersfield", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Bowling", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Columbus", "ECommerce.count": "9", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Dallas", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Glendale", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Lafayette", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Lakewood", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Marion", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Morristown", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "New York City", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Oakland", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Philadelphia", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Provo", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "San Francisco", "ECommerce.count": "2", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, + Object { "ECommerce.city": "Vancouver", "ECommerce.count": "1", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, ] `; exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 querying custom granularities ECommerce: count by half_year_by_1st_april + no dimension 1`] = ` Array [ + Object { "ECommerce.count": "3", "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", + }, + Object { "ECommerce.count": "16", "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + }, + Object { "ECommerce.count": "25", "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", + }, ] `; exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading 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/databricks-jdbc-driver export-bucket-s3 querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByTrailing 1`] = ` Array [ + Object { "ECommerce.customOrderDateNoPreAgg": "2019-12-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2019-12-01T10:00:00.000", "ECommerce.rollingCountByTrailing": "3", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-02-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-02-01T10:00:00.000", "ECommerce.rollingCountByTrailing": "3", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-04-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-04-01T10:00:00.000", "ECommerce.rollingCountByTrailing": "12", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-06-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-06-01T10:00:00.000", "ECommerce.rollingCountByTrailing": null, + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-08-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-08-01T10:00:00.000", "ECommerce.rollingCountByTrailing": "10", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-10-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-10-01T10:00:00.000", "ECommerce.rollingCountByTrailing": "16", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-12-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-12-01T10:00:00.000", "ECommerce.rollingCountByTrailing": null, + }, ] `; exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByUnbounded 1`] = ` Array [ + Object { "ECommerce.customOrderDateNoPreAgg": "2019-12-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2019-12-01T10:00:00.000", "ECommerce.rollingCountByUnbounded": "3", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-02-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-02-01T10:00:00.000", "ECommerce.rollingCountByUnbounded": "6", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-04-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-04-01T10:00:00.000", "ECommerce.rollingCountByUnbounded": "18", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-06-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-06-01T10:00:00.000", "ECommerce.rollingCountByUnbounded": "18", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-08-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-08-01T10:00:00.000", "ECommerce.rollingCountByUnbounded": "28", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-10-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-10-01T10:00:00.000", "ECommerce.rollingCountByUnbounded": "44", + }, + Object { "ECommerce.customOrderDateNoPreAgg": "2020-12-01T10:00:00.000", "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-12-01T10:00:00.000", "ECommerce.rollingCountByUnbounded": "44", + }, +] +`; diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-full.test.ts.snap index 5f8434c2808b2..da5d02bde9cc7 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-full.test.ts.snap @@ -13516,538 +13516,226 @@ Array [ }, ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver querying custom granularities ECommerce: count by half_year + dimension 1`] = ` + +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` Array [ Object { - "ECommerce.city": "Lorain", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2019-07-01T00:00:00.000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Balt Solid Wood Rectangular Table", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.city": "Auburn", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.city": "Baltimore", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "3", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", }, Object { - "ECommerce.city": "Decatur", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", }, Object { - "ECommerce.city": "Detroit", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", }, Object { - "ECommerce.city": "Houston", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", }, Object { - "ECommerce.city": "Los Angeles", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.city": "Louisville", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", }, Object { - "ECommerce.city": "New York City", - "ECommerce.count": "4", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", }, Object { - "ECommerce.city": "Olympia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.city": "Omaha", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", }, Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", }, Object { - "ECommerce.city": "Arlington", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.city": "Bakersfield", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.city": "Bowling", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "9", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.city": "Dallas", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", }, Object { - "ECommerce.city": "Detroit", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", }, Object { - "ECommerce.city": "Glendale", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", }, Object { - "ECommerce.city": "Lafayette", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", }, Object { - "ECommerce.city": "Lakewood", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.city": "Marion", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.city": "Morristown", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", }, Object { - "ECommerce.city": "New York City", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", }, Object { - "ECommerce.city": "Oakland", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", }, Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.city": "Provo", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", }, Object { - "ECommerce.city": "San Francisco", - "ECommerce.count": "2", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.city": "Vancouver", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver querying custom granularities ECommerce: count by half_year + no dimension 1`] = ` -Array [ Object { - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2019-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", }, Object { - "ECommerce.count": "17", - "ECommerce.customOrderDateNoPreAgg": "2020-01-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-01-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", }, Object { - "ECommerce.count": "26", - "ECommerce.customOrderDateNoPreAgg": "2020-07-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year": "2020-07-01T00:00:00.000", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", }, ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver querying custom granularities ECommerce: count by half_year_by_1st_april + dimension 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` Array [ Object { - "ECommerce.city": "Decatur", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Detroit", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Houston", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lorain", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "New York City", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Arlington", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Auburn", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", }, Object { - "ECommerce.city": "Bakersfield", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", }, Object { - "ECommerce.city": "Baltimore", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "4", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Detroit", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Los Angeles", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Louisville", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Morristown", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "New York City", - "ECommerce.count": "3", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Olympia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Omaha", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Provo", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Bowling", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Columbus", - "ECommerce.count": "8", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Dallas", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Glendale", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lafayette", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Lakewood", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Marion", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "New York City", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Oakland", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Philadelphia", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "San Francisco", - "ECommerce.count": "2", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, - Object { - "ECommerce.city": "Vancouver", - "ECommerce.count": "1", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver querying custom granularities ECommerce: count by half_year_by_1st_april + no dimension 1`] = ` -Array [ - Object { - "ECommerce.count": "6", - "ECommerce.customOrderDateNoPreAgg": "2019-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2019-10-01T00:00:00.000", - }, - Object { - "ECommerce.count": "18", - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-04-01T00:00:00.000", - }, - Object { - "ECommerce.count": "20", - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T00:00:00.000", - "ECommerce.customOrderDateNoPreAgg.half_year_by_1st_april": "2020-10-01T00:00:00.000", - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading 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/databricks-jdbc-driver querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByTrailing 1`] = ` -Array [ - Object { - "ECommerce.customOrderDateNoPreAgg": "2019-12-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2019-12-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "3", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-02-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-02-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "3", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-04-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "12", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-06-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-06-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": null, - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-08-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-08-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "10", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-10-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": "16", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-12-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-12-01T10:00:00.000", - "ECommerce.rollingCountByTrailing": null, - }, -] -`; - -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByUnbounded 1`] = ` -Array [ - Object { - "ECommerce.customOrderDateNoPreAgg": "2019-12-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2019-12-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "3", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-02-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-02-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "6", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-04-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-04-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "18", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-06-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-06-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "18", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-08-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-08-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "28", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-10-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-10-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "44", - }, - Object { - "ECommerce.customOrderDateNoPreAgg": "2020-12-01T10:00:00.000", - "ECommerce.customOrderDateNoPreAgg.two_mo_by_feb": "2020-12-01T10:00:00.000", - "ECommerce.rollingCountByUnbounded": "44", + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", }, ] `; diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/mssql-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/mssql-full.test.ts.snap index e5c4f287f4873..141c0c7799373 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/mssql-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/mssql-full.test.ts.snap @@ -1,5 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`Queries with the @cubejs-backend/mssql-driver SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` +Array [ + Object { + "a0": 41, + }, +] +`; + exports[`Queries with the @cubejs-backend/mssql-driver filtering Customers: contains + dimensions, first 1`] = ` Array [ Object { @@ -340,14 +348,6 @@ Array [ exports[`Queries with the @cubejs-backend/mssql-driver filtering Customers: contains + dimensions, third 1`] = `Array []`; -exports[`Queries with the @cubejs-backend/mssql-driver filtering Products: contains with special chars + dimensions 1`] = ` -Array [ - Object { - "Products.productName": "Logitech di_Novo Edge Keyboard", - }, -] -`; - exports[`Queries with the @cubejs-backend/mssql-driver filtering Customers: endsWith filter + dimensions, first 1`] = ` Array [ Object { @@ -2046,6 +2046,14 @@ Array [ exports[`Queries with the @cubejs-backend/mssql-driver filtering Products: contains + dimensions + order, third 1`] = `Array []`; +exports[`Queries with the @cubejs-backend/mssql-driver filtering Products: contains with special chars + dimensions 1`] = ` +Array [ + Object { + "Products.productName": "Logitech di_Novo Edge Keyboard", + }, +] +`; + exports[`Queries with the @cubejs-backend/mssql-driver filtering Products: endsWith filter + dimensions + order, first 1`] = ` Array [ Object { @@ -2540,6 +2548,277 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/mssql-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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "20000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "20000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "20000", + "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": "10000", + "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": "10000", + "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": "20000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "20000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "10000", + "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": "20000", + "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": "10000", + "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": "10000", + "BigECommerce.orderDate": "2020-12-25T00:00:00.000", + "BigECommerce.orderDate.day": "2020-12-25T00:00:00.000", + }, +] +`; + exports[`Queries with the @cubejs-backend/mssql-driver querying BigECommerce: rolling window by 2 day 1`] = ` Array [ Object { @@ -2737,7 +3016,52 @@ Array [ exports[`Queries with the @cubejs-backend/mssql-driver querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; -exports[`Queries with the @cubejs-backend/mssql-driver querying Customers: dimensions 1`] = ` +exports[`Queries with the @cubejs-backend/mssql-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/mssql-driver querying Customers: dimensions + order 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -2906,52 +3230,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/mssql-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/mssql-driver querying Customers: dimensions + order 1`] = ` +exports[`Queries with the @cubejs-backend/mssql-driver querying Customers: dimensions 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -3229,7 +3508,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/mssql-driver querying ECommerce: dimensions 1`] = ` +exports[`Queries with the @cubejs-backend/mssql-driver querying ECommerce: dimensions + limit 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -3381,45 +3660,200 @@ Array [ "ECommerce.sales": 1979.89, "ECommerce.subCategory": "Phones", }, +] +`; + +exports[`Queries with the @cubejs-backend/mssql-driver querying ECommerce: dimensions + order 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.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": 2952, - "ECommerce.sales": 113.888, - "ECommerce.subCategory": "Chairs", + "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, - "ECommerce.orderDate": "2020-10-19T00:00:00.000", - "ECommerce.orderId": "CA-2017-131492", + "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": 10.3904, - "ECommerce.quantity": 2, - "ECommerce.rowId": 3059, - "ECommerce.sales": 30.56, + "ECommerce.profit": 8.5568, + "ECommerce.quantity": 4, + "ECommerce.rowId": 849, + "ECommerce.sales": 48.896, "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.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, @@ -3894,162 +4328,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/mssql-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/mssql-driver querying ECommerce: dimensions + order 1`] = ` +exports[`Queries with the @cubejs-backend/mssql-driver querying ECommerce: dimensions 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -5344,6 +5623,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/mssql-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mssql-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/mssql-driver querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { 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 12f49d94dd1a6..3e8bd46499b9d 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,5 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +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, + }, +] +`; + exports[`Queries with the @cubejs-backend/mysql-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` Array [ Object { @@ -548,14 +556,6 @@ Array [ exports[`Queries with the @cubejs-backend/mysql-driver filtering Customers: contains + dimensions, 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 Customers: endsWith filter + dimensions, first 1`] = ` Array [ Object { @@ -2254,6 +2254,14 @@ Array [ 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 { @@ -2959,7 +2967,7 @@ Array [ exports[`Queries with the @cubejs-backend/mysql-driver querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + limit 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -3001,42 +3009,19 @@ Array [ "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 + 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", @@ -3069,66 +3054,55 @@ Array [ "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": "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", + "Customers.customerId": "AH-10465", + "Customers.customerName": "Customer 1", }, Object { - "Customers.customerId": "ML-17755", - "Customers.customerName": "Customer 33", + "Customers.customerId": "BS-11755", + "Customers.customerName": "Customer 10", }, Object { - "Customers.customerId": "MM-18280", - "Customers.customerName": "Customer 34", + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", }, Object { - "Customers.customerId": "NP-18670", - "Customers.customerName": "Customer 35", + "Customers.customerId": "CC-12475", + "Customers.customerName": "Customer 12", }, Object { - "Customers.customerId": "PF-19165", - "Customers.customerName": "Customer 36", + "Customers.customerId": "CD-12280", + "Customers.customerName": "Customer 13", }, Object { - "Customers.customerId": "SB-20185", - "Customers.customerName": "Customer 37", + "Customers.customerId": "CS-12355", + "Customers.customerName": "Customer 14", }, Object { - "Customers.customerId": "SS-20140", - "Customers.customerName": "Customer 38", + "Customers.customerId": "DB-13405", + "Customers.customerName": "Customer 15", }, Object { - "Customers.customerId": "TB-21175", - "Customers.customerName": "Customer 39", + "Customers.customerId": "DG-13300", + "Customers.customerName": "Customer 16", }, Object { - "Customers.customerId": "TS-21205", - "Customers.customerName": "Customer 40", + "Customers.customerId": "DW-13480", + "Customers.customerName": "Customer 17", }, Object { - "Customers.customerId": "WB-21850", - "Customers.customerName": "Customer 41", + "Customers.customerId": "EM-14140", + "Customers.customerName": "Customer 18", }, ] `; -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + limit 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + order 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -3170,18 +3144,41 @@ Array [ "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", + "Customers.customerId": "CA-12775", + "Customers.customerName": "Customer 11", }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "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", @@ -3215,55 +3212,66 @@ Array [ "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", + "Customers.customerId": "KN-16705", + "Customers.customerName": "Customer 28", }, Object { - "Customers.customerId": "BS-11755", - "Customers.customerName": "Customer 10", + "Customers.customerId": "LC-17050", + "Customers.customerName": "Customer 29", }, Object { - "Customers.customerId": "CA-12775", - "Customers.customerName": "Customer 11", + "Customers.customerId": "LR-16915", + "Customers.customerName": "Customer 30", }, Object { - "Customers.customerId": "CC-12475", - "Customers.customerName": "Customer 12", + "Customers.customerId": "MC-17605", + "Customers.customerName": "Customer 31", }, Object { - "Customers.customerId": "CD-12280", - "Customers.customerName": "Customer 13", + "Customers.customerId": "MG-17650", + "Customers.customerName": "Customer 32", }, Object { - "Customers.customerId": "CS-12355", - "Customers.customerName": "Customer 14", + "Customers.customerId": "ML-17755", + "Customers.customerName": "Customer 33", }, Object { - "Customers.customerId": "DB-13405", - "Customers.customerName": "Customer 15", + "Customers.customerId": "MM-18280", + "Customers.customerName": "Customer 34", }, Object { - "Customers.customerId": "DG-13300", - "Customers.customerName": "Customer 16", + "Customers.customerId": "NP-18670", + "Customers.customerName": "Customer 35", }, Object { - "Customers.customerId": "DW-13480", - "Customers.customerName": "Customer 17", + "Customers.customerId": "PF-19165", + "Customers.customerName": "Customer 36", }, Object { - "Customers.customerId": "EM-14140", - "Customers.customerName": "Customer 18", + "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 + order 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + total 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -3432,7 +3440,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions + total 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver querying Customers: dimensions 1`] = ` Array [ Object { "Customers.customerId": "AH-10465", @@ -3710,7 +3718,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + limit 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -3862,6 +3870,11 @@ Array [ "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", @@ -4012,370 +4025,165 @@ Array [ "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": "Office Supplies", - "ECommerce.city": "Columbus", - "ECommerce.customerId": "WB-21850", - "ECommerce.customerName": "Customer 41", + "ECommerce.category": "Furniture", + "ECommerce.city": "Detroit", + "ECommerce.customerId": "MC-17605", + "ECommerce.customerName": "Customer 31", "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", + "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": "Marion", - "ECommerce.customerId": "MG-17650", - "ECommerce.customerName": "Customer 32", + "ECommerce.city": "Lorain", + "ECommerce.customerId": "GA-14725", + "ECommerce.customerName": "Customer 19", "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.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": "Oakland", - "ECommerce.customerId": "BB-11545", - "ECommerce.customerName": "Customer 5", + "ECommerce.city": "Olympia", + "ECommerce.customerId": "PF-19165", + "ECommerce.customerName": "Customer 36", "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.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": "Office Supplies", - "ECommerce.city": "Baltimore", - "ECommerce.customerId": "AJ-10780", - "ECommerce.customerName": "Customer 2", + "ECommerce.category": "Furniture", + "ECommerce.city": "Vancouver", + "ECommerce.customerId": "JW-15220", + "ECommerce.customerName": "Customer 26", "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.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": 6459, - "ECommerce.sales": 3.76, - "ECommerce.subCategory": "Art", + "ECommerce.rowId": 1494, + "ECommerce.sales": 9.64, + "ECommerce.subCategory": "Furnishings", }, 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.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": 0.7065, + "ECommerce.profit": -2.1195, "ECommerce.quantity": 3, - "ECommerce.rowId": 7310, - "ECommerce.sales": 14.13, + "ECommerce.rowId": 1995, + "ECommerce.sales": 11.304, "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.customerId": "KN-16705", + "ECommerce.customerName": "Customer 28", "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.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": 8697, - "ECommerce.sales": 239.976, - "ECommerce.subCategory": "Phones", + "ECommerce.rowId": 2329, + "ECommerce.sales": 14.352, + "ECommerce.subCategory": "Envelopes", }, Object { "ECommerce.category": "Technology", - "ECommerce.city": "Morristown", - "ECommerce.customerId": "GZ-14470", - "ECommerce.customerName": "Customer 20", + "ECommerce.city": "New York City", + "ECommerce.customerId": "DB-13405", + "ECommerce.customerName": "Customer 15", "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-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": "Technology", + "ECommerce.category": "Office Supplies", "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", + "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": "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.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": 9618, - "ECommerce.sales": 899.982, - "ECommerce.subCategory": "Copiers", + "ECommerce.rowId": 2655, + "ECommerce.sales": 1292.94, + "ECommerce.subCategory": "Bookcases", }, 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.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 + limit 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + order 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -4527,11 +4335,6 @@ Array [ "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", @@ -4583,264 +4386,469 @@ Array [ "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", + "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": "Auburn", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", + "ECommerce.city": "Baltimore", + "ECommerce.customerId": "AJ-10780", + "ECommerce.customerName": "Customer 2", "ECommerce.discount": 0, - "ECommerce.orderDate": "2020-06-11T00:00:00.000", - "ECommerce.orderId": "CA-2017-102554", + "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": 3448, + "ECommerce.rowId": 6459, "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.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": 3717, - "ECommerce.sales": 23.55, + "ECommerce.rowId": 6651, + "ECommerce.sales": 45.92, "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.category": "Technology", + "ECommerce.city": "Houston", + "ECommerce.customerId": "HK-14890", + "ECommerce.customerName": "Customer 22", "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-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": "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.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": "Technology", + "ECommerce.category": "Office Supplies", "ECommerce.city": "New York City", - "ECommerce.customerId": "AH-10465", - "ECommerce.customerName": "Customer 1", + "ECommerce.customerId": "MM-18280", + "ECommerce.customerName": "Customer 34", "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.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": 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", + "ECommerce.rowId": 7310, + "ECommerce.sales": 14.13, + "ECommerce.subCategory": "Fasteners", }, Object { "ECommerce.category": "Furniture", - "ECommerce.city": "Lorain", - "ECommerce.customerId": "GA-14725", - "ECommerce.customerName": "Customer 19", + "ECommerce.city": "Philadelphia", + "ECommerce.customerId": "BS-11755", + "ECommerce.customerName": "Customer 10", "ECommerce.discount": 0.2, - "ECommerce.orderDate": "2020-01-01T00:00:00.000", - "ECommerce.orderId": "CA-2017-107503", + "ECommerce.orderDate": "2020-04-10T00:00:00.000", + "ECommerce.orderId": "CA-2017-135069", "ECommerce.productName": "Linden 10 Round Wall Clock, Black", - "ECommerce.profit": 8.5568, - "ECommerce.quantity": 4, - "ECommerce.rowId": 849, - "ECommerce.sales": 48.896, + "ECommerce.profit": 6.4176, + "ECommerce.quantity": 3, + "ECommerce.rowId": 7425, + "ECommerce.sales": 36.672, "ECommerce.subCategory": "Furnishings", }, Object { - "ECommerce.category": "Office Supplies", - "ECommerce.city": "Olympia", - "ECommerce.customerId": "PF-19165", - "ECommerce.customerName": "Customer 36", + "ECommerce.category": "Technology", + "ECommerce.city": "Columbus", + "ECommerce.customerId": "BF-11170", + "ECommerce.customerName": "Customer 7", "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", + "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": "Vancouver", - "ECommerce.customerId": "JW-15220", - "ECommerce.customerName": "Customer 26", + "ECommerce.city": "Lakewood", + "ECommerce.customerId": "NP-18670", + "ECommerce.customerName": "Customer 35", "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.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": "Columbus", - "ECommerce.customerId": "ML-17755", - "ECommerce.customerName": "Customer 33", + "ECommerce.city": "Decatur", + "ECommerce.customerId": "JS-16030", + "ECommerce.customerName": "Customer 25", "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.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": "Office Supplies", + "ECommerce.category": "Technology", "ECommerce.city": "Columbus", - "ECommerce.customerId": "KN-16705", - "ECommerce.customerName": "Customer 28", + "ECommerce.customerId": "TS-21205", + "ECommerce.customerName": "Customer 40", "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.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": 2329, - "ECommerce.sales": 14.352, - "ECommerce.subCategory": "Envelopes", + "ECommerce.rowId": 8697, + "ECommerce.sales": 239.976, + "ECommerce.subCategory": "Phones", }, Object { "ECommerce.category": "Technology", - "ECommerce.city": "New York City", - "ECommerce.customerId": "DB-13405", - "ECommerce.customerName": "Customer 15", + "ECommerce.city": "Morristown", + "ECommerce.customerId": "GZ-14470", + "ECommerce.customerName": "Customer 20", "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-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": "Office Supplies", + "ECommerce.category": "Technology", "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.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": 2595, - "ECommerce.sales": 180.96, - "ECommerce.subCategory": "Envelopes", + "ECommerce.rowId": 8958, + "ECommerce.sales": 120, + "ECommerce.subCategory": "Machines", }, 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.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.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 + order 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + total 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -5505,7 +5513,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions + total 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver querying ECommerce: dimensions 1`] = ` Array [ Object { "ECommerce.category": "Furniture", @@ -6570,6 +6578,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/mysql-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/mysql-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/mysql-driver querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap index 91e577c321eb2..06980f68b3f95 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap @@ -15638,6 +15638,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/postgres-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/postgres-driver querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/postgres-driver querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-full.test.ts.snap index b67f59e24033c..a498f385a4232 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-full.test.ts.snap @@ -8059,6 +8059,14 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` +Array [ + Object { + "a0": 41, + }, +] +`; + exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` Array [ Object { @@ -8067,6 +8075,15 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure 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/snowflake-driver export-bucket-azure SQL API: powerbi min max ungrouped flag: powerbi_min_max_ungrouped_flag 1`] = ` Array [ Object { @@ -8077,6 +8094,196 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: reuse params: reuse_params 1`] = ` +Array [ + Object { + "c0": 2020-01-01T00:00:00.000Z, + "m0": 17372, + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure 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/snowflake-driver export-bucket-azure filtering Customers: contains + dimensions, first 1`] = ` Array [ Object { @@ -10352,438 +10559,974 @@ Array [ exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure filtering Products: startsWith filter + dimensions + order, third 1`] = `Array []`; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: rolling count_distinct_approx window by 2 day 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure pre-aggregations Customers: running total without time dimension 1`] = ` +Array [ + Object { + "Customers.runningTotal": "41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure 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.rollingCountApproxBy2Day": "0", + "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.rollingCountApproxBy2Day": "0", + "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.rollingCountApproxBy2Day": "0", + "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.rollingCountApproxBy2Day": "0", + "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.rollingCountApproxBy2Day": "0", + "BigECommerce.productName": "Google Nexus 6", + "BigECommerce.totalQuantity": "3", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "1", + "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-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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", }, -] -`; - -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Month": "2", + "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-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", + "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-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", + "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-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", + "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-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "6", + "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-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "12", + "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-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "7", + "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-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "0", + "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.rollingCountApproxBy2Month": "6", + "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.rollingCountApproxBy2Month": "9", + "BigECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "BigECommerce.totalQuantity": "2", }, Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "11", + "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-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "15", + "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", }, -] -`; - -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Week": "1", + "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-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "1", + "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-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "1", + "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-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", + "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-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", + "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-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "3", - }, + "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-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", + "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-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", + "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-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "3", + "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-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", + "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-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", + "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.rollingCountApproxBy2Week": "2", + "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/snowflake-driver export-bucket-azure querying BigECommerce: rolling window by 2 day 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure 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/snowflake-driver export-bucket-azure querying BigECommerce: rolling count_distinct_approx 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, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-02-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-03-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-04-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-05-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-06-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-07-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-08-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-09-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-10-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": "1", + "BigECommerce.rollingCountApproxBy2Day": "1", }, Object { "BigECommerce.orderDate": "2020-11-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-12-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: rolling window by 2 month 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: rolling count_distinct_approx 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", + "BigECommerce.rollingCountApproxBy2Month": "2", }, Object { "BigECommerce.orderDate": "2020-02-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "3", + "BigECommerce.rollingCountApproxBy2Month": "3", }, Object { "BigECommerce.orderDate": "2020-03-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "3", + "BigECommerce.rollingCountApproxBy2Month": "3", }, Object { "BigECommerce.orderDate": "2020-04-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "3", + "BigECommerce.rollingCountApproxBy2Month": "3", }, Object { "BigECommerce.orderDate": "2020-05-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "6", + "BigECommerce.rollingCountApproxBy2Month": "6", }, Object { "BigECommerce.orderDate": "2020-06-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "12", + "BigECommerce.rollingCountApproxBy2Month": "12", }, Object { "BigECommerce.orderDate": "2020-07-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "7", + "BigECommerce.rollingCountApproxBy2Month": "7", }, Object { "BigECommerce.orderDate": "2020-08-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": null, + "BigECommerce.rollingCountApproxBy2Month": "0", }, Object { "BigECommerce.orderDate": "2020-09-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "6", + "BigECommerce.rollingCountApproxBy2Month": "6", }, Object { "BigECommerce.orderDate": "2020-10-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "10", + "BigECommerce.rollingCountApproxBy2Month": "9", }, Object { "BigECommerce.orderDate": "2020-11-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "13", + "BigECommerce.rollingCountApproxBy2Month": "11", }, Object { "BigECommerce.orderDate": "2020-12-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "16", + "BigECommerce.rollingCountApproxBy2Month": "15", }, ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: rolling window by 2 week 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: rolling count_distinct_approx 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", + "BigECommerce.rollingCountApproxBy2Week": "1", }, Object { "BigECommerce.orderDate": "2020-02-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "1", + "BigECommerce.rollingCountApproxBy2Week": "1", }, Object { "BigECommerce.orderDate": "2020-03-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "1", + "BigECommerce.rollingCountApproxBy2Week": "1", }, Object { "BigECommerce.orderDate": "2020-04-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "BigECommerce.rollingCountApproxBy2Week": "0", }, Object { "BigECommerce.orderDate": "2020-05-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "2", + "BigECommerce.rollingCountApproxBy2Week": "2", }, Object { "BigECommerce.orderDate": "2020-06-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "3", + "BigECommerce.rollingCountApproxBy2Week": "3", }, Object { "BigECommerce.orderDate": "2020-07-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "BigECommerce.rollingCountApproxBy2Week": "0", }, Object { "BigECommerce.orderDate": "2020-08-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "BigECommerce.rollingCountApproxBy2Week": "0", }, Object { "BigECommerce.orderDate": "2020-09-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "3", + "BigECommerce.rollingCountApproxBy2Week": "3", }, Object { "BigECommerce.orderDate": "2020-10-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "3", + "BigECommerce.rollingCountApproxBy2Week": "2", }, Object { "BigECommerce.orderDate": "2020-11-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "2", + "BigECommerce.rollingCountApproxBy2Week": "2", }, Object { "BigECommerce.orderDate": "2020-12-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "2", + "BigECommerce.rollingCountApproxBy2Week": "2", }, ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying Customers: dimensions + limit 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying BigECommerce: rolling window by 2 day 1`] = ` Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BS-11755", + "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/snowflake-driver export-bucket-azure 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/snowflake-driver export-bucket-azure 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/snowflake-driver export-bucket-azure querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure 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", }, ] @@ -13847,139 +14590,569 @@ Array [ "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.8640", - "ECommerce.quantity": "5", - "ECommerce.rowId": "8621", - "ECommerce.sales": "30.560", - "ECommerce.subCategory": "Furnishings", + "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.8640", + "ECommerce.quantity": "5", + "ECommerce.rowId": "8621", + "ECommerce.sales": "30.560", + "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.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.6000", + "ECommerce.quantity": "4", + "ECommerce.rowId": "8878", + "ECommerce.sales": "480.000", + "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.2000", + "ECommerce.quantity": "2", + "ECommerce.rowId": "8958", + "ECommerce.sales": "120.000", + "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.3970", + "ECommerce.quantity": "3", + "ECommerce.rowId": "9619", + "ECommerce.sales": "86.352", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure 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.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.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.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.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.totalQuantity": "3", + }, + Object { + "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.totalQuantity": "2", + }, + Object { + "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.totalQuantity": "5", + }, + Object { + "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.totalQuantity": "2", + }, + Object { + "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.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.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.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.totalQuantity": "4", + }, + Object { + "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.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.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.totalQuantity": "5", + }, + Object { + "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.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "2", + }, + Object { + "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.totalQuantity": "5", + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying ECommerce: partitioned pre-agg higher granularity 1`] = ` +Array [ + Object { + "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.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.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "7", + }, + Object { + "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.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.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.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.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.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.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.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.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.totalQuantity": "6", + }, + Object { + "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.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.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": "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": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "9", }, 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": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Morristown", - "ECommerce.customerId": "GZ-14470", - "ECommerce.customerName": "Customer 20", - "ECommerce.discount": "0.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.6000", - "ECommerce.quantity": "4", - "ECommerce.rowId": "8878", - "ECommerce.sales": "480.000", - "ECommerce.subCategory": "Machines", + "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": "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.2000", - "ECommerce.quantity": "2", - "ECommerce.rowId": "8958", - "ECommerce.sales": "120.000", - "ECommerce.subCategory": "Machines", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", }, 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": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", }, 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": "Recycled Eldon Regeneration Jumbo File", + "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": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", }, 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.3970", - "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": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "11", + }, + Object { + "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", }, ] `; @@ -14384,6 +15557,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object { diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-via-storage-integration-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-via-storage-integration-full.test.ts.snap index a0f7cf92d39bb..c29a313c49c75 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-via-storage-integration-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-via-storage-integration-full.test.ts.snap @@ -8059,6 +8059,14 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: metabase count cast to float32 from push down: metabase_count_cast_to_float32_from_push_down 1`] = ` +Array [ + Object { + "a0": 41, + }, +] +`; + exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` Array [ Object { @@ -8067,6 +8075,15 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration 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/snowflake-driver export-bucket-azure-via-storage-integration SQL API: powerbi min max ungrouped flag: powerbi_min_max_ungrouped_flag 1`] = ` Array [ Object { @@ -8077,6 +8094,196 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: reuse params: reuse_params 1`] = ` +Array [ + Object { + "c0": 2020-01-01T00:00:00.000Z, + "m0": 17372, + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration 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/snowflake-driver export-bucket-azure-via-storage-integration filtering Customers: contains + dimensions, first 1`] = ` Array [ Object { @@ -10352,438 +10559,974 @@ Array [ exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration filtering Products: startsWith filter + dimensions + order, third 1`] = `Array []`; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling count_distinct_approx window by 2 day 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration pre-aggregations Customers: running total without time dimension 1`] = ` +Array [ + Object { + "Customers.runningTotal": "41", + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration 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.rollingCountApproxBy2Day": "0", + "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.rollingCountApproxBy2Day": "0", + "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.rollingCountApproxBy2Day": "0", + "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.rollingCountApproxBy2Day": "0", + "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.rollingCountApproxBy2Day": "0", + "BigECommerce.productName": "Google Nexus 6", + "BigECommerce.totalQuantity": "3", }, Object { - "BigECommerce.orderDate": "2020-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "1", + "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-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Day": "0", + "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", }, -] -`; - -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Month": "2", + "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-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", + "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-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", + "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-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "3", + "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-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "6", + "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-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "12", + "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-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "7", + "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-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "0", + "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.rollingCountApproxBy2Month": "6", + "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.rollingCountApproxBy2Month": "9", + "BigECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "BigECommerce.totalQuantity": "2", }, Object { - "BigECommerce.orderDate": "2020-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "11", + "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-12-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Month": "15", + "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", }, -] -`; - -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling count_distinct_approx 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.rollingCountApproxBy2Week": "1", + "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-02-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "1", + "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-03-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "1", + "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-04-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", + "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-05-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", + "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-06-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "3", - }, + "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-07-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", + "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-08-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "0", + "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-09-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "3", + "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-10-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", + "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-11-01T00:00:00.000", - "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountApproxBy2Week": "2", + "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.rollingCountApproxBy2Week": "2", + "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/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling window by 2 day 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration 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/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling count_distinct_approx 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, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-02-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-03-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-04-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-05-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-06-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-07-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-08-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-09-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-10-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": "1", + "BigECommerce.rollingCountApproxBy2Day": "1", }, Object { "BigECommerce.orderDate": "2020-11-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, Object { "BigECommerce.orderDate": "2020-12-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Day": null, + "BigECommerce.rollingCountApproxBy2Day": "0", }, ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling window by 2 month 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling count_distinct_approx 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", + "BigECommerce.rollingCountApproxBy2Month": "2", }, Object { "BigECommerce.orderDate": "2020-02-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "3", + "BigECommerce.rollingCountApproxBy2Month": "3", }, Object { "BigECommerce.orderDate": "2020-03-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "3", + "BigECommerce.rollingCountApproxBy2Month": "3", }, Object { "BigECommerce.orderDate": "2020-04-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "3", + "BigECommerce.rollingCountApproxBy2Month": "3", }, Object { "BigECommerce.orderDate": "2020-05-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "6", + "BigECommerce.rollingCountApproxBy2Month": "6", }, Object { "BigECommerce.orderDate": "2020-06-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "12", + "BigECommerce.rollingCountApproxBy2Month": "12", }, Object { "BigECommerce.orderDate": "2020-07-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "7", + "BigECommerce.rollingCountApproxBy2Month": "7", }, Object { "BigECommerce.orderDate": "2020-08-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": null, + "BigECommerce.rollingCountApproxBy2Month": "0", }, Object { "BigECommerce.orderDate": "2020-09-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "6", + "BigECommerce.rollingCountApproxBy2Month": "6", }, Object { "BigECommerce.orderDate": "2020-10-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "10", + "BigECommerce.rollingCountApproxBy2Month": "9", }, Object { "BigECommerce.orderDate": "2020-11-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "13", + "BigECommerce.rollingCountApproxBy2Month": "11", }, Object { "BigECommerce.orderDate": "2020-12-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Month": "16", + "BigECommerce.rollingCountApproxBy2Month": "15", }, ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling window by 2 week 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling count_distinct_approx 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", + "BigECommerce.rollingCountApproxBy2Week": "1", }, Object { "BigECommerce.orderDate": "2020-02-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "1", + "BigECommerce.rollingCountApproxBy2Week": "1", }, Object { "BigECommerce.orderDate": "2020-03-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "1", + "BigECommerce.rollingCountApproxBy2Week": "1", }, Object { "BigECommerce.orderDate": "2020-04-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "BigECommerce.rollingCountApproxBy2Week": "0", }, Object { "BigECommerce.orderDate": "2020-05-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "2", + "BigECommerce.rollingCountApproxBy2Week": "2", }, Object { "BigECommerce.orderDate": "2020-06-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "3", + "BigECommerce.rollingCountApproxBy2Week": "3", }, Object { "BigECommerce.orderDate": "2020-07-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "BigECommerce.rollingCountApproxBy2Week": "0", }, Object { "BigECommerce.orderDate": "2020-08-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": null, + "BigECommerce.rollingCountApproxBy2Week": "0", }, Object { "BigECommerce.orderDate": "2020-09-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "3", + "BigECommerce.rollingCountApproxBy2Week": "3", }, Object { "BigECommerce.orderDate": "2020-10-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-10-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "3", + "BigECommerce.rollingCountApproxBy2Week": "2", }, Object { "BigECommerce.orderDate": "2020-11-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-11-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "2", + "BigECommerce.rollingCountApproxBy2Week": "2", }, Object { "BigECommerce.orderDate": "2020-12-01T00:00:00.000", "BigECommerce.orderDate.month": "2020-12-01T00:00:00.000", - "BigECommerce.rollingCountBy2Week": "2", + "BigECommerce.rollingCountApproxBy2Week": "2", }, ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; - -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying Customers: dimensions + limit 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: rolling window by 2 day 1`] = ` Array [ Object { - "Customers.customerId": "AH-10465", - "Customers.customerName": "Customer 1", + "BigECommerce.orderDate": "2020-01-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-01-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "AJ-10780", - "Customers.customerName": "Customer 2", + "BigECommerce.orderDate": "2020-02-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-02-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "AS-10225", - "Customers.customerName": "Customer 3", + "BigECommerce.orderDate": "2020-03-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-03-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "AW-10840", - "Customers.customerName": "Customer 4", + "BigECommerce.orderDate": "2020-04-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-04-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BB-11545", - "Customers.customerName": "Customer 5", + "BigECommerce.orderDate": "2020-05-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-05-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BF-11020", - "Customers.customerName": "Customer 6", + "BigECommerce.orderDate": "2020-06-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-06-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BF-11170", - "Customers.customerName": "Customer 7", + "BigECommerce.orderDate": "2020-07-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-07-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BM-11650", - "Customers.customerName": "Customer 8", + "BigECommerce.orderDate": "2020-08-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-08-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BS-11380", - "Customers.customerName": "Customer 9", + "BigECommerce.orderDate": "2020-09-01T00:00:00.000", + "BigECommerce.orderDate.month": "2020-09-01T00:00:00.000", + "BigECommerce.rollingCountBy2Day": null, }, Object { - "Customers.customerId": "BS-11755", + "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/snowflake-driver export-bucket-azure-via-storage-integration 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/snowflake-driver export-bucket-azure-via-storage-integration 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/snowflake-driver export-bucket-azure-via-storage-integration querying BigECommerce: totalProfitYearAgo 1`] = `Array []`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration 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", }, ] @@ -13847,139 +14590,569 @@ Array [ "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.8640", - "ECommerce.quantity": "5", - "ECommerce.rowId": "8621", - "ECommerce.sales": "30.560", - "ECommerce.subCategory": "Furnishings", + "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.8640", + "ECommerce.quantity": "5", + "ECommerce.rowId": "8621", + "ECommerce.sales": "30.560", + "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.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.6000", + "ECommerce.quantity": "4", + "ECommerce.rowId": "8878", + "ECommerce.sales": "480.000", + "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.2000", + "ECommerce.quantity": "2", + "ECommerce.rowId": "8958", + "ECommerce.sales": "120.000", + "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.3970", + "ECommerce.quantity": "3", + "ECommerce.rowId": "9619", + "ECommerce.sales": "86.352", + "ECommerce.subCategory": "Art", + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration 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.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.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.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.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.totalQuantity": "3", + }, + Object { + "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.totalQuantity": "2", + }, + Object { + "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.totalQuantity": "5", + }, + Object { + "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.totalQuantity": "2", + }, + Object { + "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.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.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.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.totalQuantity": "4", + }, + Object { + "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.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.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.totalQuantity": "5", + }, + Object { + "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.orderDate": "2020-12-01T00:00:00.000", + "ECommerce.orderDate.month": "2020-12-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "2", + }, + Object { + "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.totalQuantity": "5", + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying ECommerce: partitioned pre-agg higher granularity 1`] = ` +Array [ + Object { + "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.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.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "7", + }, + Object { + "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.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.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.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.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.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.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.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.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.totalQuantity": "6", + }, + Object { + "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.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.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": "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": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "9", }, 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": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", }, Object { - "ECommerce.category": "Technology", - "ECommerce.city": "Morristown", - "ECommerce.customerId": "GZ-14470", - "ECommerce.customerName": "Customer 20", - "ECommerce.discount": "0.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.6000", - "ECommerce.quantity": "4", - "ECommerce.rowId": "8878", - "ECommerce.sales": "480.000", - "ECommerce.subCategory": "Machines", + "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": "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.2000", - "ECommerce.quantity": "2", - "ECommerce.rowId": "8958", - "ECommerce.sales": "120.000", - "ECommerce.subCategory": "Machines", + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", }, 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": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", }, 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": "Recycled Eldon Regeneration Jumbo File", + "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": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", }, 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.3970", - "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": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "11", + }, + Object { + "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", }, ] `; @@ -14384,6 +15557,229 @@ Array [ ] `; +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "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.half_year": "2020-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "DMI Eclipse Executive Suite Bookcases", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 6", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 7", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "HTC One", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.1", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.2", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Plymouth Boxed Rubber Bands by Plymouth", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Project Tote Personal File", + "ECommerce.totalQuantity": "1", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Tyvek Side-Opening Peel & Seel Expanding Envelopes", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Anderson Hickey Conga Table Tops & Accessories", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Canon PC1080F Personal Copier", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Global Adaptabilites Bookcase, Cherry/Storm Gray Finish", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Google Nexus 5", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Harbour Creations 67200 Series Stacking Chairs", + "ECommerce.totalQuantity": "11", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Hewlett Packard 610 Color Digital Copier / Printer", + "ECommerce.totalQuantity": "3", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Iceberg Nesting Folding Chair, 19w x 6d x 43h", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Kingston Digital DataTraveler 16GB USB 2.0", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Lexmark 20R1285 X6650 Wireless All-in-One Printer", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Linden 10 Round Wall Clock, Black", + "ECommerce.totalQuantity": "7", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Logitech di_Novo Edge Keyboard", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Magna Visual Magnetic Picture Hangers", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "OIC #2 Pencils, Medium Soft", + "ECommerce.totalQuantity": "5", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Okidata C610n Printer", + "ECommerce.totalQuantity": "2", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Panasonic KP-380BK Classic Electric Pencil Sharpener", + "ECommerce.totalQuantity": "8", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Recycled Eldon Regeneration Jumbo File", + "ECommerce.totalQuantity": "4", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Vinyl Coated Wire Paper Clips in Organizer Box, 800/Box", + "ECommerce.totalQuantity": "9", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.productName": "Wausau Papers Astrobrights Colored Envelopes", + "ECommerce.totalQuantity": "3", + }, +] +`; + +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension 1`] = ` +Array [ + Object { + "ECommerce.orderDate": "2020-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-01-01T00:00:00.000", + "ECommerce.totalQuantity": "6", + }, + Object { + "ECommerce.orderDate": "2020-07-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2020-07-01T00:00:00.000", + "ECommerce.totalQuantity": "51", + }, + Object { + "ECommerce.orderDate": "2021-01-01T00:00:00.000", + "ECommerce.orderDate.half_year": "2021-01-01T00:00:00.000", + "ECommerce.totalQuantity": "103", + }, +] +`; + exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration querying custom granularities ECommerce: count by half_year + dimension 1`] = ` Array [ Object {