@cubejs-backend/testing 0.33.2 → 0.33.3
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
cube(`Orders`, {
|
|
2
2
|
sql: `
|
|
3
|
-
select 1 as id, 100 as amount, 'new' status
|
|
3
|
+
select 1 as id, 100 as amount, 100.15 as decimal_amount, CAST(100.5 AS FLOAT) as float_amount, 'new' status
|
|
4
4
|
UNION ALL
|
|
5
|
-
select 2 as id, 200 as amount, 'new' status
|
|
5
|
+
select 2 as id, 200 as amount, 100.25 as decimal_amount, CAST(200.5 AS FLOAT) as float_amount, 'new' status
|
|
6
6
|
UNION ALL
|
|
7
|
-
select 3 as id, 300 as amount, 'processed' status
|
|
7
|
+
select 3 as id, 300 as amount, 100.35 as decimal_amount, CAST(300.5 AS FLOAT) as float_amount, 'processed' status
|
|
8
8
|
UNION ALL
|
|
9
|
-
select 4 as id, 500 as amount, 'processed' status
|
|
9
|
+
select 4 as id, 500 as amount, 100.45 as decimal_amount, CAST(500.5 AS FLOAT) as float_amount, 'processed' status
|
|
10
10
|
UNION ALL
|
|
11
|
-
select 5 as id, 600 as amount, 'shipped' status
|
|
11
|
+
select 5 as id, 600 as amount, 100.55 as decimal_amount, CAST(600.5 AS FLOAT) as float_amount, 'shipped' status
|
|
12
12
|
`,
|
|
13
13
|
measures: {
|
|
14
14
|
count: {
|
|
@@ -18,6 +18,14 @@ cube(`Orders`, {
|
|
|
18
18
|
sql: `amount`,
|
|
19
19
|
type: `sum`,
|
|
20
20
|
},
|
|
21
|
+
totalDecimalAmount: {
|
|
22
|
+
sql: `decimal_amount`,
|
|
23
|
+
type: `sum`,
|
|
24
|
+
},
|
|
25
|
+
totalFloatAmount: {
|
|
26
|
+
sql: `float_amount`,
|
|
27
|
+
type: `sum`,
|
|
28
|
+
},
|
|
21
29
|
toRemove: {
|
|
22
30
|
type: `count`,
|
|
23
31
|
},
|
|
@@ -31,7 +39,7 @@ cube(`Orders`, {
|
|
|
31
39
|
|
|
32
40
|
preAggregations: {
|
|
33
41
|
amount: {
|
|
34
|
-
measures: [totalAmount],
|
|
42
|
+
measures: [totalAmount, totalFloatAmount, totalDecimalAmount],
|
|
35
43
|
dimensions: [status],
|
|
36
44
|
}
|
|
37
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/testing",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.3",
|
|
4
4
|
"description": "Cube.js e2e tests",
|
|
5
5
|
"author": "Cube Dev, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"eslintConfig": {
|
|
143
143
|
"extends": "../cubejs-linter"
|
|
144
144
|
},
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "1c0b1928bd939a36d2fd00ac84962f593e4af137"
|
|
146
146
|
}
|