File tree Expand file tree Collapse file tree 17 files changed +1509
-14
lines changed
packages/cubejs-testing-drivers Expand file tree Collapse file tree 17 files changed +1509
-14
lines changed Original file line number Diff line number Diff line change 258
258
"name" : " Customers" ,
259
259
"relationship" : " belongs_to" ,
260
260
"sql" : " {CUBE}.customer_id = {Customers}.customer_id"
261
+ },
262
+ {
263
+ "name" : " RetailCalendar" ,
264
+ "relationship" : " many_to_one" ,
265
+ "sql" : " {CUBE}.order_date = {RetailCalendar.date_val}"
261
266
}
262
267
],
263
268
"dimensions" : [
389
394
"type" : " prior"
390
395
}]
391
396
},
397
+ {
398
+ "name" : " totalCountRetailYearAgo" ,
399
+ "type" : " number" ,
400
+ "sql" : " {count}" ,
401
+ "multi_stage" : true ,
402
+ "time_shift" : [{
403
+ "interval" : " 1 year" ,
404
+ "type" : " prior"
405
+ }]
406
+ },
407
+ {
408
+ "name" : " totalCountRetailMonthAgo" ,
409
+ "type" : " number" ,
410
+ "sql" : " {count}" ,
411
+ "multi_stage" : true ,
412
+ "time_shift" : [{
413
+ "interval" : " 1 month" ,
414
+ "type" : " prior"
415
+ }]
416
+ },
417
+ {
418
+ "name" : " totalCountRetailWeekAgo" ,
419
+ "type" : " number" ,
420
+ "sql" : " {count}" ,
421
+ "multi_stage" : true ,
422
+ "time_shift" : [{
423
+ "interval" : " 1 week" ,
424
+ "type" : " prior"
425
+ }]
426
+ },
392
427
{
393
428
"name" : " totalProfitForStatus" ,
394
429
"type" : " sum" ,
462
497
}
463
498
}
464
499
]
500
+ },
501
+ {
502
+ "name" : " RetailCalendar" ,
503
+ "calendar" : true ,
504
+ "dimensions" : [
505
+ {
506
+ "name" : " date_val" ,
507
+ "sql" : " date_val" ,
508
+ "type" : " time" ,
509
+ "primary_key" : true ,
510
+ "shown" : true
511
+ },
512
+ {
513
+ "name" : " retail_date" ,
514
+ "sql" : " date_val" ,
515
+ "type" : " time" ,
516
+ "granularities" : [
517
+ {
518
+ "name" : " week" ,
519
+ "sql" : " {CUBE}.retail_week_begin_date"
520
+ },
521
+ {
522
+ "name" : " quarter" ,
523
+ "sql" : " {CUBE}.retail_quarter_begin_date"
524
+ },
525
+ {
526
+ "name" : " year" ,
527
+ "sql" : " {CUBE}.retail_year_begin_date"
528
+ }
529
+ ],
530
+ "timeShift" : [
531
+ {
532
+ "interval" : " 1 month" ,
533
+ "type" : " prior" ,
534
+ "sql" : " {CUBE}.retail_date_prev_month"
535
+ },
536
+ {
537
+ "interval" : " 1 quarter" ,
538
+ "type" : " prior" ,
539
+ "sql" : " {CUBE}.retail_date_prev_quarter"
540
+ },
541
+ {
542
+ "interval" : " 1 year" ,
543
+ "type" : " prior" ,
544
+ "sql" : " {CUBE}.retail_date_prev_year"
545
+ }
546
+ ]
547
+ }
548
+ ]
465
549
}
466
550
]
467
551
}
Original file line number Diff line number Diff line change 34
34
"products" : " products" ,
35
35
"customers" : " customers" ,
36
36
"ecommerce" : " ecommerce" ,
37
- "bigecommerce" : " bigecommerce"
37
+ "bigecommerce" : " bigecommerce" ,
38
+ "retailcalendar" : " retailcalendar"
38
39
},
39
40
"preAggregations" : {
40
41
"Products" : [],
150
151
" week granularity is not supported for intervals" ,
151
152
" querying BigECommerce: rolling window by 2 week" ,
152
153
" querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range" ,
154
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
155
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
156
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo" ,
153
157
154
158
" ---------------------------------------" ,
155
159
" Custom Granularities " ,
203
207
" querying BigECommerce: rolling window YTD (month + week + no gran)" ,
204
208
" querying BigECommerce: rolling window YTD without granularity" ,
205
209
" SQL API: Rolling Window YTD (year + month + day + date_trunc equal)" ,
206
- " 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"
207
212
]
208
213
}
Original file line number Diff line number Diff line change 36
36
"products" : " test.products" ,
37
37
"customers" : " test.customers" ,
38
38
"ecommerce" : " test.ecommerce" ,
39
- "bigecommerce" : " test.bigecommerce"
39
+ "bigecommerce" : " test.bigecommerce" ,
40
+ "retailcalendar" : " test.retailcalendar"
40
41
},
41
42
"preAggregations" : {
42
43
"Products" : [],
164
165
" querying BigECommerce: rolling window by 2 month without date range" ,
165
166
" querying BigECommerce: rolling window YTD without date range" ,
166
167
" querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range" ,
168
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
169
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
170
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo" ,
167
171
168
172
" ---------------------------------------" ,
169
173
" SKIPPED SQL API (Need work)" ,
Original file line number Diff line number Diff line change 74
74
"products" : " products" ,
75
75
"customers" : " customers" ,
76
76
"ecommerce" : " ecommerce" ,
77
- "bigecommerce" : " bigecommerce"
77
+ "bigecommerce" : " bigecommerce" ,
78
+ "retailcalendar" : " retailcalendar"
78
79
},
79
80
"preAggregations" : {
80
81
"Products" : [],
201
202
" querying BigECommerce: rolling window by 2 month without date range" ,
202
203
" querying BigECommerce: rolling window YTD without date range" ,
203
204
" querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range" ,
205
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
206
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
207
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo" ,
204
208
205
209
" ---------------------------------------" ,
206
210
" Custom Granularities " ,
Original file line number Diff line number Diff line change 96
96
"products" : " products" ,
97
97
"customers" : " customers" ,
98
98
"ecommerce" : " ecommerce" ,
99
- "bigecommerce" : " bigecommerce"
99
+ "bigecommerce" : " bigecommerce" ,
100
+ "retailcalendar" : " retailcalendar"
100
101
},
101
102
"preAggregations" : {
102
103
"Products" : [],
217
218
" querying BigECommerce: rolling window by 2 month without date range" ,
218
219
" querying BigECommerce: rolling window YTD without date range" ,
219
220
" querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range" ,
221
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
222
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
223
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo" ,
220
224
221
225
" ---------------------------------------" ,
222
226
" Custom Granularities " ,
Original file line number Diff line number Diff line change 43
43
"products" : " products" ,
44
44
"customers" : " customers" ,
45
45
"ecommerce" : " ecommerce" ,
46
- "bigecommerce" : " bigecommerce"
46
+ "bigecommerce" : " bigecommerce" ,
47
+ "retailcalendar" : " retailcalendar"
47
48
},
48
49
"preAggregations" : {
49
50
"Products" : [],
143
144
" querying BigECommerce: rolling window by 2 month without date range" ,
144
145
" querying BigECommerce: rolling window YTD without date range" ,
145
146
" querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range" ,
147
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
148
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
149
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo" ,
146
150
147
151
" ---------------------------------------" ,
148
152
" SKIPPED SQL API (Need work)" ,
Original file line number Diff line number Diff line change 43
43
"products" : " products" ,
44
44
"customers" : " customers" ,
45
45
"ecommerce" : " ecommerce" ,
46
- "bigecommerce" : " bigecommerce"
46
+ "bigecommerce" : " bigecommerce" ,
47
+ "retailcalendar" : " retailcalendar"
47
48
},
48
49
"preAggregations" : {
49
50
"Products" : [],
139
140
" querying BigECommerce: rolling window by 2 month without date range" ,
140
141
" querying BigECommerce: rolling window YTD without date range" ,
141
142
" querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range" ,
143
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
144
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
145
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo" ,
142
146
143
147
" ---------------------------------------" ,
144
148
" Custom Granularities " ,
Original file line number Diff line number Diff line change 42
42
"products" : " products" ,
43
43
"customers" : " customers" ,
44
44
"ecommerce" : " ecommerce" ,
45
- "bigecommerce" : " bigecommerce"
45
+ "bigecommerce" : " bigecommerce" ,
46
+ "retailcalendar" : " retailcalendar"
46
47
},
47
48
"preAggregations" : {
48
49
"Products" : [],
163
164
" querying BigECommerce: rolling window by 2 day without date range" ,
164
165
" querying BigECommerce: rolling window by 2 month without date range" ,
165
166
" querying BigECommerce: rolling window YTD without date range" ,
166
- " querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range"
167
+ " querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range" ,
168
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
169
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
170
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo"
167
171
],
168
172
"tesseractSkip" : [
169
173
" querying Products: dimensions -- doesn't work wo ordering" ,
Original file line number Diff line number Diff line change 47
47
"products" : " public.products" ,
48
48
"customers" : " public.customers" ,
49
49
"ecommerce" : " public.ecommerce" ,
50
- "bigecommerce" : " public.bigecommerce"
50
+ "bigecommerce" : " public.bigecommerce" ,
51
+ "retailcalendar" : " public.retailcalendar"
51
52
},
52
53
"preAggregations" : {
53
54
"Products" : [],
175
176
" querying BigECommerce: rolling window by 2 month without date range" ,
176
177
" querying BigECommerce: rolling window YTD without date range" ,
177
178
" querying custom granularities ECommerce: count by two_mo_by_feb + no dimension + rollingCountByLeading without date range" ,
179
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
180
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
181
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo" ,
178
182
179
183
" ---------------------------------------" ,
180
184
" SKIPPED SQL API (Need work) " ,
Original file line number Diff line number Diff line change 120
120
"products" : " public.products" ,
121
121
"customers" : " public.customers" ,
122
122
"ecommerce" : " public.ecommerce" ,
123
- "bigecommerce" : " public.bigecommerce"
123
+ "bigecommerce" : " public.bigecommerce" ,
124
+ "retailcalendar" : " public.retailcalendar"
124
125
},
125
126
"preAggregations" : {
126
127
"Products" : [],
239
240
" ---------------------------------------" ,
240
241
" querying BigECommerce: rolling window by 2 day without date range" ,
241
242
" querying BigECommerce: rolling window by 2 month without date range" ,
242
- " querying BigECommerce: rolling window YTD without date range"
243
+ " querying BigECommerce: rolling window YTD without date range" ,
244
+ " querying BigECommerce with Retail Calendar: totalCountRetailYearAgo" ,
245
+ " querying BigECommerce with Retail Calendar: totalCountRetailMonthAgo" ,
246
+ " querying BigECommerce with Retail Calendar: totalCountRetailWeekAgo"
243
247
]
244
248
}
You can’t perform that action at this time.
0 commit comments