@cubejs-backend/dremio-driver 1.8.8 → 1.8.10
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,14 @@
|
|
|
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
|
+
## [1.8.10](https://github.com/cube-js/cube/compare/v1.8.9...v1.8.10) (2026-10-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @cubejs-backend/dremio-driver
|
|
9
|
+
|
|
10
|
+
## [1.8.9](https://github.com/cube-js/cube/compare/v1.8.8...v1.8.9) (2026-10-21)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @cubejs-backend/dremio-driver
|
|
13
|
+
|
|
6
14
|
## [1.8.8](https://github.com/cube-js/cube/compare/v1.8.7...v1.8.8) (2026-10-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @cubejs-backend/dremio-driver
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@cubejs-backend/dremio-driver",
|
|
3
3
|
"description": "Cube Dremio driver",
|
|
4
4
|
"author": "Cube Dev, Inc.",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.10",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/cube-js/cube.git",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"integration:dremio": "NODE_OPTIONS=--experimental-vm-modules jest --verbose dist/test"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@cubejs-backend/base-driver": "1.8.
|
|
25
|
-
"@cubejs-backend/schema-compiler": "1.8.
|
|
26
|
-
"@cubejs-backend/shared": "1.8.
|
|
24
|
+
"@cubejs-backend/base-driver": "1.8.10",
|
|
25
|
+
"@cubejs-backend/schema-compiler": "1.8.10",
|
|
26
|
+
"@cubejs-backend/shared": "1.8.10",
|
|
27
27
|
"axios": "^1.8.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@cubejs-backend/linter": "1.8.
|
|
31
|
-
"@cubejs-backend/testing-shared": "1.8.
|
|
30
|
+
"@cubejs-backend/linter": "1.8.10",
|
|
31
|
+
"@cubejs-backend/testing-shared": "1.8.10",
|
|
32
32
|
"@types/jest": "^29",
|
|
33
33
|
"@types/node": "^22",
|
|
34
34
|
"jest": "^29"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "202e013d0cdb341436f06944169cbd057c51dd2f"
|
|
41
41
|
}
|
package/test/DremioQuery.test.ts
CHANGED
|
@@ -10,7 +10,7 @@ const prepareCompiler = (content: string) => originalPrepareCompiler({
|
|
|
10
10
|
describe('DremioQuery', () => {
|
|
11
11
|
jest.setTimeout(10 * 60 * 1000); // Engine needs to spin up
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const compilers = prepareCompiler(
|
|
14
14
|
`
|
|
15
15
|
cube(\`sales\`, {
|
|
16
16
|
sql: \` select * from public.sales \`,
|
|
@@ -38,26 +38,23 @@ cube(\`sales\`, {
|
|
|
38
38
|
`,
|
|
39
39
|
);
|
|
40
40
|
|
|
41
|
-
it('should use DATE_TRUNC for time granularity dimensions', () =>
|
|
42
|
-
const query =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
],
|
|
59
|
-
}
|
|
60
|
-
);
|
|
41
|
+
it('should use DATE_TRUNC for time granularity dimensions', () => compilers.compile().then(() => {
|
|
42
|
+
const query = compilers.createQuery(DremioQuery, {
|
|
43
|
+
measures: ['sales.count'],
|
|
44
|
+
timeDimensions: [
|
|
45
|
+
{
|
|
46
|
+
dimension: 'sales.salesDatetime',
|
|
47
|
+
granularity: 'day',
|
|
48
|
+
dateRange: ['2017-01-01', '2017-01-02'],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
timezone: 'America/Los_Angeles',
|
|
52
|
+
order: [
|
|
53
|
+
{
|
|
54
|
+
id: 'sales.salesDatetime',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
});
|
|
61
58
|
|
|
62
59
|
const queryAndParams = query.buildSqlAndParams();
|
|
63
60
|
|
|
@@ -66,20 +63,17 @@ cube(\`sales\`, {
|
|
|
66
63
|
);
|
|
67
64
|
}));
|
|
68
65
|
|
|
69
|
-
it('should cast BOOLEAN', () =>
|
|
70
|
-
const query =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
);
|
|
66
|
+
it('should cast BOOLEAN', () => compilers.compile().then(() => {
|
|
67
|
+
const query = compilers.createQuery(DremioQuery, {
|
|
68
|
+
measures: ['sales.count'],
|
|
69
|
+
filters: [
|
|
70
|
+
{
|
|
71
|
+
member: 'sales.isShiped',
|
|
72
|
+
operator: 'equals',
|
|
73
|
+
values: ['true']
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
});
|
|
83
77
|
|
|
84
78
|
const queryAndParams = query.buildSqlAndParams();
|
|
85
79
|
|
|
@@ -90,26 +84,23 @@ cube(\`sales\`, {
|
|
|
90
84
|
expect(queryAndParams[1]).toEqual(['true']);
|
|
91
85
|
}));
|
|
92
86
|
|
|
93
|
-
it('should cast timestamp', () =>
|
|
94
|
-
const query =
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
],
|
|
111
|
-
}
|
|
112
|
-
);
|
|
87
|
+
it('should cast timestamp', () => compilers.compile().then(() => {
|
|
88
|
+
const query = compilers.createQuery(DremioQuery, {
|
|
89
|
+
measures: ['sales.count'],
|
|
90
|
+
timeDimensions: [
|
|
91
|
+
{
|
|
92
|
+
dimension: 'sales.salesDatetime',
|
|
93
|
+
granularity: 'day',
|
|
94
|
+
dateRange: ['2017-01-01', '2017-01-02'],
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
timezone: 'America/Los_Angeles',
|
|
98
|
+
order: [
|
|
99
|
+
{
|
|
100
|
+
id: 'sales.salesDatetime',
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
});
|
|
113
104
|
|
|
114
105
|
const queryAndParams = query.buildSqlAndParams();
|
|
115
106
|
|
|
@@ -32,11 +32,11 @@ const MODEL = `
|
|
|
32
32
|
`;
|
|
33
33
|
|
|
34
34
|
const buildFilter = async (operator: string) => {
|
|
35
|
-
const
|
|
35
|
+
const compilers = prepareCompiler(MODEL);
|
|
36
36
|
|
|
37
|
-
await
|
|
37
|
+
await compilers.compile();
|
|
38
38
|
|
|
39
|
-
const query =
|
|
39
|
+
const query = compilers.createQuery(DremioQuery, {
|
|
40
40
|
measures: ['orders.count'],
|
|
41
41
|
filters: [{ member: 'orders.status', operator, values: ['%'] }],
|
|
42
42
|
useNativeSqlPlanner: true,
|