Skip to content

Commit d361a61

Browse files
committed
update snapshots
1 parent c632741 commit d361a61

File tree

4 files changed

+396
-1
lines changed

4 files changed

+396
-1
lines changed

packages/cubejs-testing-drivers/fixtures/athena.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
"querying BigECommerce: rolling window YTD (month + week + no gran)",
208208
"querying BigECommerce: rolling window YTD without granularity",
209209
"SQL API: Rolling Window YTD (year + month + day + date_trunc equal)",
210-
"SQL API: Rolling Window YTD (year + month + day + date_trunc IN)"
210+
"SQL API: Rolling Window YTD (year + month + day + date_trunc IN)",
211+
"querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo"
211212
]
212213
}

packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3057,6 +3057,70 @@ Array [
30573057
]
30583058
`;
30593059

3060+
exports[`Queries with the @cubejs-backend/athena-driver querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo 1`] = `
3061+
Array [
3062+
Object {
3063+
"BigECommerce.count": "1",
3064+
"BigECommerce.totalCountRetailMonthAgo": "1",
3065+
"RetailCalendar.retail_date": "2020-02-01T00:00:00.000",
3066+
"RetailCalendar.retail_date.month": "2020-02-01T00:00:00.000",
3067+
},
3068+
Object {
3069+
"BigECommerce.count": "2",
3070+
"BigECommerce.totalCountRetailMonthAgo": "1",
3071+
"RetailCalendar.retail_date": "2020-03-01T00:00:00.000",
3072+
"RetailCalendar.retail_date.month": "2020-03-01T00:00:00.000",
3073+
},
3074+
Object {
3075+
"BigECommerce.count": "1",
3076+
"BigECommerce.totalCountRetailMonthAgo": "2",
3077+
"RetailCalendar.retail_date": "2020-04-01T00:00:00.000",
3078+
"RetailCalendar.retail_date.month": "2020-04-01T00:00:00.000",
3079+
},
3080+
Object {
3081+
"BigECommerce.count": "5",
3082+
"BigECommerce.totalCountRetailMonthAgo": "1",
3083+
"RetailCalendar.retail_date": "2020-05-01T00:00:00.000",
3084+
"RetailCalendar.retail_date.month": "2020-05-01T00:00:00.000",
3085+
},
3086+
Object {
3087+
"BigECommerce.count": "7",
3088+
"BigECommerce.totalCountRetailMonthAgo": "5",
3089+
"RetailCalendar.retail_date": "2020-06-01T00:00:00.000",
3090+
"RetailCalendar.retail_date.month": "2020-06-01T00:00:00.000",
3091+
},
3092+
Object {
3093+
"BigECommerce.count": "4",
3094+
"BigECommerce.totalCountRetailMonthAgo": "6",
3095+
"RetailCalendar.retail_date": "2020-10-01T00:00:00.000",
3096+
"RetailCalendar.retail_date.month": "2020-10-01T00:00:00.000",
3097+
},
3098+
Object {
3099+
"BigECommerce.count": "9",
3100+
"BigECommerce.totalCountRetailMonthAgo": "5",
3101+
"RetailCalendar.retail_date": "2020-11-01T00:00:00.000",
3102+
"RetailCalendar.retail_date.month": "2020-11-01T00:00:00.000",
3103+
},
3104+
Object {
3105+
"BigECommerce.count": "7",
3106+
"BigECommerce.totalCountRetailMonthAgo": "8",
3107+
"RetailCalendar.retail_date": "2020-12-01T00:00:00.000",
3108+
"RetailCalendar.retail_date.month": "2020-12-01T00:00:00.000",
3109+
},
3110+
]
3111+
`;
3112+
3113+
exports[`Queries with the @cubejs-backend/athena-driver querying BigECommerce with Retail Calendar: totalCountRetailYearAgo 1`] = `
3114+
Array [
3115+
Object {
3116+
"BigECommerce.count": "42",
3117+
"BigECommerce.totalCountRetailYearAgo": "2",
3118+
"RetailCalendar.retail_date": "2020-02-02T00:00:00.000",
3119+
"RetailCalendar.retail_date.year": "2020-02-02T00:00:00.000",
3120+
},
3121+
]
3122+
`;
3123+
30603124
exports[`Queries with the @cubejs-backend/athena-driver querying BigECommerce: partitioned pre-agg with multi time dimension 1`] = `
30613125
Array [
30623126
Object {

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: totalCountRetailMonthAgo 1`] = `
6264+
Array [
6265+
Object {
6266+
"BigECommerce.count": 1,
6267+
"BigECommerce.totalCountRetailMonthAgo": 1,
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.count": 2,
6273+
"BigECommerce.totalCountRetailMonthAgo": 1,
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.count": 1,
6279+
"BigECommerce.totalCountRetailMonthAgo": 2,
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.count": 5,
6285+
"BigECommerce.totalCountRetailMonthAgo": 1,
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.count": 7,
6291+
"BigECommerce.totalCountRetailMonthAgo": 5,
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.count": 4,
6297+
"BigECommerce.totalCountRetailMonthAgo": 6,
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.count": 9,
6303+
"BigECommerce.totalCountRetailMonthAgo": 5,
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.count": 7,
6309+
"BigECommerce.totalCountRetailMonthAgo": 8,
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: totalCountRetailWeekAgo 1`] = `
6317+
Array [
6318+
Object {
6319+
"BigECommerce.count": 1,
6320+
"BigECommerce.totalCountRetailWeekAgo": 1,
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.count": 1,
6326+
"BigECommerce.totalCountRetailWeekAgo": 2,
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.count": 2,
6332+
"BigECommerce.totalCountRetailWeekAgo": 1,
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.count": 2,
6338+
"BigECommerce.totalCountRetailWeekAgo": 2,
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.count": 2,
6344+
"BigECommerce.totalCountRetailWeekAgo": 2,
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.count": 1,
6350+
"BigECommerce.totalCountRetailWeekAgo": 2,
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.count": 2,
6356+
"BigECommerce.totalCountRetailWeekAgo": 1,
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.count": 1,
6362+
"BigECommerce.totalCountRetailWeekAgo": 2,
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.count": 2,
6368+
"BigECommerce.totalCountRetailWeekAgo": 1,
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.count": 1,
6374+
"BigECommerce.totalCountRetailWeekAgo": 2,
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.count": 3,
6380+
"BigECommerce.totalCountRetailWeekAgo": 1,
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.count": 2,
6386+
"BigECommerce.totalCountRetailWeekAgo": 3,
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.count": 3,
6392+
"BigECommerce.totalCountRetailWeekAgo": 2,
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.count": 1,
6398+
"BigECommerce.totalCountRetailWeekAgo": 3,
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.count": 3,
6404+
"BigECommerce.totalCountRetailWeekAgo": 1,
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.count": 2,
6410+
"BigECommerce.totalCountRetailWeekAgo": 2,
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: totalCountRetailYearAgo 1`] = `
6418+
Array [
6419+
Object {
6420+
"BigECommerce.count": 42,
6421+
"BigECommerce.totalCountRetailYearAgo": 2,
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 {

0 commit comments

Comments
 (0)