@cubejs-backend/testing 0.29.29 → 0.29.30

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.29.30](https://github.com/cube-js/cube.js/compare/v0.29.29...v0.29.30) (2022-03-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **@cubejs-backend/cubestore-driver:** Empty tables in Cube Store if index is being used ([#4170](https://github.com/cube-js/cube.js/issues/4170)) ([2585c12](https://github.com/cube-js/cube.js/commit/2585c124f5ba3bc843e19a7f8177c8dbb35ad1cc))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.29.29](https://github.com/cube-js/cube.js/compare/v0.29.28...v0.29.29) (2022-03-03)
7
18
 
8
19
 
@@ -0,0 +1,47 @@
1
+ cube(`OrdersPA`, {
2
+ sql: `
3
+ select 1 as id, 100 as amount, 'new' status
4
+ UNION ALL
5
+ select 2 as id, 200 as amount, 'new' status
6
+ UNION ALL
7
+ select 3 as id, 300 as amount, 'processed' status
8
+ UNION ALL
9
+ select 4 as id, 500 as amount, 'processed' status
10
+ UNION ALL
11
+ select 5 as id, 600 as amount, 'shipped' status
12
+ `,
13
+
14
+ preAggregations: {
15
+ orderStatus: {
16
+ measures: [CUBE.totalAmount],
17
+ dimensions: [CUBE.status],
18
+ indexes: {
19
+ categoryIndex: {
20
+ columns: [CUBE.status],
21
+ },
22
+ },
23
+ refreshKey: {
24
+ every: `1 hour`,
25
+ }
26
+ },
27
+ },
28
+
29
+ measures: {
30
+ count: {
31
+ type: `count`,
32
+ },
33
+ totalAmount: {
34
+ sql: `amount`,
35
+ type: `sum`,
36
+ },
37
+ toRemove: {
38
+ type: `count`,
39
+ },
40
+ },
41
+ dimensions: {
42
+ status: {
43
+ sql: `status`,
44
+ type: `string`,
45
+ },
46
+ },
47
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-backend/testing",
3
- "version": "0.29.29",
3
+ "version": "0.29.30",
4
4
  "description": "Cube.js Testing Helpers",
5
5
  "author": "Cube Dev, Inc.",
6
6
  "license": "Apache-2.0",
@@ -90,5 +90,5 @@
90
90
  "eslintConfig": {
91
91
  "extends": "../cubejs-linter"
92
92
  },
93
- "gitHead": "23638ee42cceb8fc80e821486ab30825e2b9a483"
93
+ "gitHead": "a58544758bb174297378f66b663191e48033b9b5"
94
94
  }