Skip to content

Commit 7bdb05f

Browse files
committed
update snapshots
1 parent d40928e commit 7bdb05f

File tree

2 files changed

+330
-0
lines changed

2 files changed

+330
-0
lines changed

packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6260,6 +6260,171 @@ Array [
62606260
]
62616261
`;
62626262

6263+
exports[`Queries with the @cubejs-backend/bigquery-driver querying BigECommerce with Retail Calendar: totalProfitRetailMonthAgo 1`] = `
6264+
Array [
6265+
Object {
6266+
"BigECommerce.totalProfit": 6.1992,
6267+
"BigECommerce.totalProfitRetailMonthAgo": 21.098,
6268+
"RetailCalendar.retail_date": "2020-02-01T00:00:00.000",
6269+
"RetailCalendar.retail_date.month": "2020-02-01T00:00:00.000",
6270+
},
6271+
Object {
6272+
"BigECommerce.totalProfit": 583.5945,
6273+
"BigECommerce.totalProfitRetailMonthAgo": 6.1992,
6274+
"RetailCalendar.retail_date": "2020-03-01T00:00:00.000",
6275+
"RetailCalendar.retail_date.month": "2020-03-01T00:00:00.000",
6276+
},
6277+
Object {
6278+
"BigECommerce.totalProfit": 6.4176,
6279+
"BigECommerce.totalProfitRetailMonthAgo": 583.5945,
6280+
"RetailCalendar.retail_date": "2020-04-01T00:00:00.000",
6281+
"RetailCalendar.retail_date.month": "2020-04-01T00:00:00.000",
6282+
},
6283+
Object {
6284+
"BigECommerce.totalProfit": 353.6849,
6285+
"BigECommerce.totalProfitRetailMonthAgo": 6.4176,
6286+
"RetailCalendar.retail_date": "2020-05-01T00:00:00.000",
6287+
"RetailCalendar.retail_date.month": "2020-05-01T00:00:00.000",
6288+
},
6289+
Object {
6290+
"BigECommerce.totalProfit": 34.2361,
6291+
"BigECommerce.totalProfitRetailMonthAgo": 353.6849,
6292+
"RetailCalendar.retail_date": "2020-06-01T00:00:00.000",
6293+
"RetailCalendar.retail_date.month": "2020-06-01T00:00:00.000",
6294+
},
6295+
Object {
6296+
"BigECommerce.totalProfit": 139.997,
6297+
"BigECommerce.totalProfitRetailMonthAgo": 461.1332,
6298+
"RetailCalendar.retail_date": "2020-10-01T00:00:00.000",
6299+
"RetailCalendar.retail_date.month": "2020-10-01T00:00:00.000",
6300+
},
6301+
Object {
6302+
"BigECommerce.totalProfit": 1132.6617,
6303+
"BigECommerce.totalProfitRetailMonthAgo": 657.4763,
6304+
"RetailCalendar.retail_date": "2020-11-01T00:00:00.000",
6305+
"RetailCalendar.retail_date.month": "2020-11-01T00:00:00.000",
6306+
},
6307+
Object {
6308+
"BigECommerce.totalProfit": 303.9737,
6309+
"BigECommerce.totalProfitRetailMonthAgo": 615.1824,
6310+
"RetailCalendar.retail_date": "2020-12-01T00:00:00.000",
6311+
"RetailCalendar.retail_date.month": "2020-12-01T00:00:00.000",
6312+
},
6313+
]
6314+
`;
6315+
6316+
exports[`Queries with the @cubejs-backend/bigquery-driver querying BigECommerce with Retail Calendar: totalProfitRetailWeekAgo 1`] = `
6317+
Array [
6318+
Object {
6319+
"BigECommerce.totalProfit": 569.9905,
6320+
"BigECommerce.totalProfitRetailWeekAgo": 13.604,
6321+
"RetailCalendar.retail_date": "2020-03-22T00:00:00.000",
6322+
"RetailCalendar.retail_date.week": "2020-03-22T00:00:00.000",
6323+
},
6324+
Object {
6325+
"BigECommerce.totalProfit": 8.5025,
6326+
"BigECommerce.totalProfitRetailWeekAgo": 136.17000000000002,
6327+
"RetailCalendar.retail_date": "2020-05-31T00:00:00.000",
6328+
"RetailCalendar.retail_date.week": "2020-05-31T00:00:00.000",
6329+
},
6330+
Object {
6331+
"BigECommerce.totalProfit": 1.7969,
6332+
"BigECommerce.totalProfitRetailWeekAgo": 8.5025,
6333+
"RetailCalendar.retail_date": "2020-06-07T00:00:00.000",
6334+
"RetailCalendar.retail_date.week": "2020-06-07T00:00:00.000",
6335+
},
6336+
Object {
6337+
"BigECommerce.totalProfit": 31.066,
6338+
"BigECommerce.totalProfitRetailWeekAgo": 1.7969,
6339+
"RetailCalendar.retail_date": "2020-06-14T00:00:00.000",
6340+
"RetailCalendar.retail_date.week": "2020-06-14T00:00:00.000",
6341+
},
6342+
Object {
6343+
"BigECommerce.totalProfit": -7.129300000000001,
6344+
"BigECommerce.totalProfitRetailWeekAgo": 31.066,
6345+
"RetailCalendar.retail_date": "2020-06-21T00:00:00.000",
6346+
"RetailCalendar.retail_date.week": "2020-06-21T00:00:00.000",
6347+
},
6348+
Object {
6349+
"BigECommerce.totalProfit": 15.498,
6350+
"BigECommerce.totalProfitRetailWeekAgo": 137.2562,
6351+
"RetailCalendar.retail_date": "2020-09-06T00:00:00.000",
6352+
"RetailCalendar.retail_date.week": "2020-09-06T00:00:00.000",
6353+
},
6354+
Object {
6355+
"BigECommerce.totalProfit": 303.1764,
6356+
"BigECommerce.totalProfitRetailWeekAgo": 15.498,
6357+
"RetailCalendar.retail_date": "2020-09-13T00:00:00.000",
6358+
"RetailCalendar.retail_date.week": "2020-09-13T00:00:00.000",
6359+
},
6360+
Object {
6361+
"BigECommerce.totalProfit": 5.2026,
6362+
"BigECommerce.totalProfitRetailWeekAgo": 303.1764,
6363+
"RetailCalendar.retail_date": "2020-09-20T00:00:00.000",
6364+
"RetailCalendar.retail_date.week": "2020-09-20T00:00:00.000",
6365+
},
6366+
Object {
6367+
"BigECommerce.totalProfit": 7.0398,
6368+
"BigECommerce.totalProfitRetailWeekAgo": 129.294,
6369+
"RetailCalendar.retail_date": "2020-10-18T00:00:00.000",
6370+
"RetailCalendar.retail_date.week": "2020-10-18T00:00:00.000",
6371+
},
6372+
Object {
6373+
"BigECommerce.totalProfit": 3.6632,
6374+
"BigECommerce.totalProfitRetailWeekAgo": 7.0398,
6375+
"RetailCalendar.retail_date": "2020-10-25T00:00:00.000",
6376+
"RetailCalendar.retail_date.week": "2020-10-25T00:00:00.000",
6377+
},
6378+
Object {
6379+
"BigECommerce.totalProfit": 521.8165,
6380+
"BigECommerce.totalProfitRetailWeekAgo": 3.6632,
6381+
"RetailCalendar.retail_date": "2020-11-01T00:00:00.000",
6382+
"RetailCalendar.retail_date.week": "2020-11-01T00:00:00.000",
6383+
},
6384+
Object {
6385+
"BigECommerce.totalProfit": 31.5476,
6386+
"BigECommerce.totalProfitRetailWeekAgo": 521.8165,
6387+
"RetailCalendar.retail_date": "2020-11-08T00:00:00.000",
6388+
"RetailCalendar.retail_date.week": "2020-11-08T00:00:00.000",
6389+
},
6390+
Object {
6391+
"BigECommerce.totalProfit": 84.3251,
6392+
"BigECommerce.totalProfitRetailWeekAgo": 31.5476,
6393+
"RetailCalendar.retail_date": "2020-11-15T00:00:00.000",
6394+
"RetailCalendar.retail_date.week": "2020-11-15T00:00:00.000",
6395+
},
6396+
Object {
6397+
"BigECommerce.totalProfit": 494.9725,
6398+
"BigECommerce.totalProfitRetailWeekAgo": 84.3251,
6399+
"RetailCalendar.retail_date": "2020-11-22T00:00:00.000",
6400+
"RetailCalendar.retail_date.week": "2020-11-22T00:00:00.000",
6401+
},
6402+
Object {
6403+
"BigECommerce.totalProfit": -225.8698,
6404+
"BigECommerce.totalProfitRetailWeekAgo": 494.9725,
6405+
"RetailCalendar.retail_date": "2020-11-29T00:00:00.000",
6406+
"RetailCalendar.retail_date.week": "2020-11-29T00:00:00.000",
6407+
},
6408+
Object {
6409+
"BigECommerce.totalProfit": 53.3488,
6410+
"BigECommerce.totalProfitRetailWeekAgo": 476.4947,
6411+
"RetailCalendar.retail_date": "2020-12-20T00:00:00.000",
6412+
"RetailCalendar.retail_date.week": "2020-12-20T00:00:00.000",
6413+
},
6414+
]
6415+
`;
6416+
6417+
exports[`Queries with the @cubejs-backend/bigquery-driver querying BigECommerce with Retail Calendar: totalProfitRetailYearAgo 1`] = `
6418+
Array [
6419+
Object {
6420+
"BigECommerce.totalProfit": 3021.8979,
6421+
"BigECommerce.totalProfitRetailYearAgo": 29.6548,
6422+
"RetailCalendar.retail_date": "2020-02-02T00:00:00.000",
6423+
"RetailCalendar.retail_date.year": "2020-02-02T00:00:00.000",
6424+
},
6425+
]
6426+
`;
6427+
62636428
exports[`Queries with the @cubejs-backend/bigquery-driver querying BigECommerce: filtering with possible casts 1`] = `
62646429
Array [
62656430
Object {

packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11116,6 +11116,171 @@ Array [
1111611116
]
1111711117
`;
1111811118

11119+
exports[`Queries with the @cubejs-backend/postgres-driver querying BigECommerce with Retail Calendar: totalProfitRetailMonthAgo 1`] = `
11120+
Array [
11121+
Object {
11122+
"BigECommerce.totalProfit": "6.19920",
11123+
"BigECommerce.totalProfitRetailMonthAgo": "21.09800",
11124+
"RetailCalendar.retail_date": "2020-02-01T00:00:00.000",
11125+
"RetailCalendar.retail_date.month": "2020-02-01T00:00:00.000",
11126+
},
11127+
Object {
11128+
"BigECommerce.totalProfit": "583.59450",
11129+
"BigECommerce.totalProfitRetailMonthAgo": "6.19920",
11130+
"RetailCalendar.retail_date": "2020-03-01T00:00:00.000",
11131+
"RetailCalendar.retail_date.month": "2020-03-01T00:00:00.000",
11132+
},
11133+
Object {
11134+
"BigECommerce.totalProfit": "6.41760",
11135+
"BigECommerce.totalProfitRetailMonthAgo": "583.59450",
11136+
"RetailCalendar.retail_date": "2020-04-01T00:00:00.000",
11137+
"RetailCalendar.retail_date.month": "2020-04-01T00:00:00.000",
11138+
},
11139+
Object {
11140+
"BigECommerce.totalProfit": "353.68490",
11141+
"BigECommerce.totalProfitRetailMonthAgo": "6.41760",
11142+
"RetailCalendar.retail_date": "2020-05-01T00:00:00.000",
11143+
"RetailCalendar.retail_date.month": "2020-05-01T00:00:00.000",
11144+
},
11145+
Object {
11146+
"BigECommerce.totalProfit": "34.23610",
11147+
"BigECommerce.totalProfitRetailMonthAgo": "353.68490",
11148+
"RetailCalendar.retail_date": "2020-06-01T00:00:00.000",
11149+
"RetailCalendar.retail_date.month": "2020-06-01T00:00:00.000",
11150+
},
11151+
Object {
11152+
"BigECommerce.totalProfit": "139.99700",
11153+
"BigECommerce.totalProfitRetailMonthAgo": "461.13320",
11154+
"RetailCalendar.retail_date": "2020-10-01T00:00:00.000",
11155+
"RetailCalendar.retail_date.month": "2020-10-01T00:00:00.000",
11156+
},
11157+
Object {
11158+
"BigECommerce.totalProfit": "1132.66170",
11159+
"BigECommerce.totalProfitRetailMonthAgo": "657.47630",
11160+
"RetailCalendar.retail_date": "2020-11-01T00:00:00.000",
11161+
"RetailCalendar.retail_date.month": "2020-11-01T00:00:00.000",
11162+
},
11163+
Object {
11164+
"BigECommerce.totalProfit": "303.97370",
11165+
"BigECommerce.totalProfitRetailMonthAgo": "615.18240",
11166+
"RetailCalendar.retail_date": "2020-12-01T00:00:00.000",
11167+
"RetailCalendar.retail_date.month": "2020-12-01T00:00:00.000",
11168+
},
11169+
]
11170+
`;
11171+
11172+
exports[`Queries with the @cubejs-backend/postgres-driver querying BigECommerce with Retail Calendar: totalProfitRetailWeekAgo 1`] = `
11173+
Array [
11174+
Object {
11175+
"BigECommerce.totalProfit": "569.99050",
11176+
"BigECommerce.totalProfitRetailWeekAgo": "13.60400",
11177+
"RetailCalendar.retail_date": "2020-03-22T00:00:00.000",
11178+
"RetailCalendar.retail_date.week": "2020-03-22T00:00:00.000",
11179+
},
11180+
Object {
11181+
"BigECommerce.totalProfit": "8.50250",
11182+
"BigECommerce.totalProfitRetailWeekAgo": "136.17000",
11183+
"RetailCalendar.retail_date": "2020-05-31T00:00:00.000",
11184+
"RetailCalendar.retail_date.week": "2020-05-31T00:00:00.000",
11185+
},
11186+
Object {
11187+
"BigECommerce.totalProfit": "1.79690",
11188+
"BigECommerce.totalProfitRetailWeekAgo": "8.50250",
11189+
"RetailCalendar.retail_date": "2020-06-07T00:00:00.000",
11190+
"RetailCalendar.retail_date.week": "2020-06-07T00:00:00.000",
11191+
},
11192+
Object {
11193+
"BigECommerce.totalProfit": "31.06600",
11194+
"BigECommerce.totalProfitRetailWeekAgo": "1.79690",
11195+
"RetailCalendar.retail_date": "2020-06-14T00:00:00.000",
11196+
"RetailCalendar.retail_date.week": "2020-06-14T00:00:00.000",
11197+
},
11198+
Object {
11199+
"BigECommerce.totalProfit": "-7.12930",
11200+
"BigECommerce.totalProfitRetailWeekAgo": "31.06600",
11201+
"RetailCalendar.retail_date": "2020-06-21T00:00:00.000",
11202+
"RetailCalendar.retail_date.week": "2020-06-21T00:00:00.000",
11203+
},
11204+
Object {
11205+
"BigECommerce.totalProfit": "15.49800",
11206+
"BigECommerce.totalProfitRetailWeekAgo": "137.25620",
11207+
"RetailCalendar.retail_date": "2020-09-06T00:00:00.000",
11208+
"RetailCalendar.retail_date.week": "2020-09-06T00:00:00.000",
11209+
},
11210+
Object {
11211+
"BigECommerce.totalProfit": "303.17640",
11212+
"BigECommerce.totalProfitRetailWeekAgo": "15.49800",
11213+
"RetailCalendar.retail_date": "2020-09-13T00:00:00.000",
11214+
"RetailCalendar.retail_date.week": "2020-09-13T00:00:00.000",
11215+
},
11216+
Object {
11217+
"BigECommerce.totalProfit": "5.20260",
11218+
"BigECommerce.totalProfitRetailWeekAgo": "303.17640",
11219+
"RetailCalendar.retail_date": "2020-09-20T00:00:00.000",
11220+
"RetailCalendar.retail_date.week": "2020-09-20T00:00:00.000",
11221+
},
11222+
Object {
11223+
"BigECommerce.totalProfit": "7.03980",
11224+
"BigECommerce.totalProfitRetailWeekAgo": "129.29400",
11225+
"RetailCalendar.retail_date": "2020-10-18T00:00:00.000",
11226+
"RetailCalendar.retail_date.week": "2020-10-18T00:00:00.000",
11227+
},
11228+
Object {
11229+
"BigECommerce.totalProfit": "3.66320",
11230+
"BigECommerce.totalProfitRetailWeekAgo": "7.03980",
11231+
"RetailCalendar.retail_date": "2020-10-25T00:00:00.000",
11232+
"RetailCalendar.retail_date.week": "2020-10-25T00:00:00.000",
11233+
},
11234+
Object {
11235+
"BigECommerce.totalProfit": "521.81650",
11236+
"BigECommerce.totalProfitRetailWeekAgo": "3.66320",
11237+
"RetailCalendar.retail_date": "2020-11-01T00:00:00.000",
11238+
"RetailCalendar.retail_date.week": "2020-11-01T00:00:00.000",
11239+
},
11240+
Object {
11241+
"BigECommerce.totalProfit": "31.54760",
11242+
"BigECommerce.totalProfitRetailWeekAgo": "521.81650",
11243+
"RetailCalendar.retail_date": "2020-11-08T00:00:00.000",
11244+
"RetailCalendar.retail_date.week": "2020-11-08T00:00:00.000",
11245+
},
11246+
Object {
11247+
"BigECommerce.totalProfit": "84.32510",
11248+
"BigECommerce.totalProfitRetailWeekAgo": "31.54760",
11249+
"RetailCalendar.retail_date": "2020-11-15T00:00:00.000",
11250+
"RetailCalendar.retail_date.week": "2020-11-15T00:00:00.000",
11251+
},
11252+
Object {
11253+
"BigECommerce.totalProfit": "494.97250",
11254+
"BigECommerce.totalProfitRetailWeekAgo": "84.32510",
11255+
"RetailCalendar.retail_date": "2020-11-22T00:00:00.000",
11256+
"RetailCalendar.retail_date.week": "2020-11-22T00:00:00.000",
11257+
},
11258+
Object {
11259+
"BigECommerce.totalProfit": "-225.86980",
11260+
"BigECommerce.totalProfitRetailWeekAgo": "494.97250",
11261+
"RetailCalendar.retail_date": "2020-11-29T00:00:00.000",
11262+
"RetailCalendar.retail_date.week": "2020-11-29T00:00:00.000",
11263+
},
11264+
Object {
11265+
"BigECommerce.totalProfit": "53.34880",
11266+
"BigECommerce.totalProfitRetailWeekAgo": "476.49470",
11267+
"RetailCalendar.retail_date": "2020-12-20T00:00:00.000",
11268+
"RetailCalendar.retail_date.week": "2020-12-20T00:00:00.000",
11269+
},
11270+
]
11271+
`;
11272+
11273+
exports[`Queries with the @cubejs-backend/postgres-driver querying BigECommerce with Retail Calendar: totalProfitRetailYearAgo 1`] = `
11274+
Array [
11275+
Object {
11276+
"BigECommerce.totalProfit": "3021.89790",
11277+
"BigECommerce.totalProfitRetailYearAgo": "29.65480",
11278+
"RetailCalendar.retail_date": "2020-02-02T00:00:00.000",
11279+
"RetailCalendar.retail_date.year": "2020-02-02T00:00:00.000",
11280+
},
11281+
]
11282+
`;
11283+
1111911284
exports[`Queries with the @cubejs-backend/postgres-driver querying BigECommerce: filtering with possible casts 1`] = `
1112011285
Array [
1112111286
Object {

0 commit comments

Comments
 (0)