@cubejs-backend/testing 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,8 +10,7 @@ cube(`Orders`, {
|
|
|
10
10
|
|
|
11
11
|
ordersByCompletedAtLambda: {
|
|
12
12
|
type: `rollupLambda`,
|
|
13
|
-
rollups: [ordersByCompletedAt, ordersByCompletedByDay, AOrdersByCompletedByHour],
|
|
14
|
-
unionWithSourceData: true,
|
|
13
|
+
rollups: [ordersByCompletedAt, ordersByCompletedByDay, RealTimeOrders.AOrdersByCompletedByHour],
|
|
15
14
|
},
|
|
16
15
|
|
|
17
16
|
ordersByCompletedAtAndUserIdLambda: {
|
|
@@ -47,10 +46,10 @@ cube(`Orders`, {
|
|
|
47
46
|
granularity: `day`,
|
|
48
47
|
partitionGranularity: `month`,
|
|
49
48
|
buildRangeStart: {
|
|
50
|
-
sql: `SELECT DATE('
|
|
49
|
+
sql: `SELECT DATE('2021-01-1')`,
|
|
51
50
|
},
|
|
52
51
|
buildRangeEnd: {
|
|
53
|
-
sql: `SELECT DATE('
|
|
52
|
+
sql: `SELECT DATE('2021-12-1')`,
|
|
54
53
|
},
|
|
55
54
|
refreshKey: {
|
|
56
55
|
every: '1 day'
|
|
@@ -64,27 +63,10 @@ cube(`Orders`, {
|
|
|
64
63
|
granularity: `day`,
|
|
65
64
|
partitionGranularity: `day`,
|
|
66
65
|
buildRangeStart: {
|
|
67
|
-
sql: `SELECT DATE('
|
|
66
|
+
sql: `SELECT DATE('2021-12-1')`,
|
|
68
67
|
},
|
|
69
68
|
buildRangeEnd: {
|
|
70
|
-
sql: `SELECT DATE('
|
|
71
|
-
},
|
|
72
|
-
refreshKey: {
|
|
73
|
-
every: '1 day'
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
AOrdersByCompletedByHour: {
|
|
78
|
-
measures: [count],
|
|
79
|
-
dimensions: [status],
|
|
80
|
-
timeDimension: completedAt,
|
|
81
|
-
granularity: `day`,
|
|
82
|
-
partitionGranularity: `hour`,
|
|
83
|
-
buildRangeStart: {
|
|
84
|
-
sql: `SELECT DATE('2020-05-5')`,
|
|
85
|
-
},
|
|
86
|
-
buildRangeEnd: {
|
|
87
|
-
sql: `SELECT DATE('2020-05-7')`,
|
|
69
|
+
sql: `SELECT DATE('2021-12-31')`,
|
|
88
70
|
},
|
|
89
71
|
refreshKey: {
|
|
90
72
|
every: '1 day'
|
|
@@ -101,7 +83,7 @@ cube(`Orders`, {
|
|
|
101
83
|
sql: `SELECT DATE('2020-02-7')`,
|
|
102
84
|
},
|
|
103
85
|
buildRangeEnd: {
|
|
104
|
-
sql: `SELECT DATE('2020-
|
|
86
|
+
sql: `SELECT DATE('2020-12-1')`,
|
|
105
87
|
},
|
|
106
88
|
refreshKey: {
|
|
107
89
|
every: '1 day'
|
|
@@ -146,3 +128,50 @@ cube(`Orders`, {
|
|
|
146
128
|
},
|
|
147
129
|
},
|
|
148
130
|
});
|
|
131
|
+
|
|
132
|
+
cube(`RealTimeOrders`, {
|
|
133
|
+
sql: `SELECT * FROM public.orders`,
|
|
134
|
+
|
|
135
|
+
measures: {
|
|
136
|
+
count: {
|
|
137
|
+
type: `count`,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
dimensions: {
|
|
142
|
+
id: {
|
|
143
|
+
sql: `id`,
|
|
144
|
+
type: `number`,
|
|
145
|
+
primaryKey: true,
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
status: {
|
|
149
|
+
sql: `status`,
|
|
150
|
+
type: `string`,
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
completedAt: {
|
|
154
|
+
sql: `completed_at`,
|
|
155
|
+
type: `time`,
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
preAggregations: {
|
|
160
|
+
AOrdersByCompletedByHour: {
|
|
161
|
+
measures: [count],
|
|
162
|
+
dimensions: [status],
|
|
163
|
+
timeDimension: completedAt,
|
|
164
|
+
granularity: `day`,
|
|
165
|
+
partitionGranularity: `hour`,
|
|
166
|
+
buildRangeStart: {
|
|
167
|
+
sql: `SELECT DATE('2021-12-29')`,
|
|
168
|
+
},
|
|
169
|
+
buildRangeEnd: {
|
|
170
|
+
sql: `SELECT DATE('2022-01-01')`,
|
|
171
|
+
},
|
|
172
|
+
refreshKey: {
|
|
173
|
+
every: '1 day'
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
}
|
|
177
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/testing",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.2",
|
|
4
4
|
"description": "Cube.js e2e tests",
|
|
5
5
|
"author": "Cube Dev, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
"birdbox-fixtures"
|
|
84
84
|
],
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@cubejs-backend/cubestore-driver": "^0.32.
|
|
86
|
+
"@cubejs-backend/cubestore-driver": "^0.32.2",
|
|
87
87
|
"@cubejs-backend/dotenv": "^9.0.2",
|
|
88
|
-
"@cubejs-backend/postgres-driver": "^0.32.
|
|
89
|
-
"@cubejs-backend/query-orchestrator": "^0.32.
|
|
90
|
-
"@cubejs-backend/schema-compiler": "^0.32.
|
|
91
|
-
"@cubejs-backend/shared": "^0.32.
|
|
92
|
-
"@cubejs-backend/testing-shared": "^0.32.
|
|
88
|
+
"@cubejs-backend/postgres-driver": "^0.32.2",
|
|
89
|
+
"@cubejs-backend/query-orchestrator": "^0.32.2",
|
|
90
|
+
"@cubejs-backend/schema-compiler": "^0.32.2",
|
|
91
|
+
"@cubejs-backend/shared": "^0.32.2",
|
|
92
|
+
"@cubejs-backend/testing-shared": "^0.32.2",
|
|
93
93
|
"@cubejs-client/ws-transport": "^0.32.0",
|
|
94
94
|
"dedent": "^0.7.0",
|
|
95
95
|
"fs-extra": "^8.1.0",
|
|
@@ -138,5 +138,5 @@
|
|
|
138
138
|
"eslintConfig": {
|
|
139
139
|
"extends": "../cubejs-linter"
|
|
140
140
|
},
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "8f3dafc3132004641e40c3750ea1762bed1a4a38"
|
|
142
142
|
}
|