@cubejs-backend/snowflake-driver 0.29.33 → 0.29.42
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 +27 -0
- package/dist/src/SnowflakeDriver.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.42](https://github.com/cube-js/cube.js/compare/v0.29.41...v0.29.42) (2022-04-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **@cubejs-backend/snowflake-driver:** Download numbers with 0 scale as integers in pre-aggregations ([42eb582](https://github.com/cube-js/cube.js/commit/42eb582908080d4e9e2856c09290950957230fcd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.29.37](https://github.com/cube-js/cube.js/compare/v0.29.36...v0.29.37) (2022-03-29)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @cubejs-backend/snowflake-driver
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.29.35](https://github.com/cube-js/cube.js/compare/v0.29.34...v0.29.35) (2022-03-24)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @cubejs-backend/snowflake-driver
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [0.29.33](https://github.com/cube-js/cube.js/compare/v0.29.32...v0.29.33) (2022-03-17)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @cubejs-backend/snowflake-driver
|
|
@@ -403,7 +403,7 @@ class SnowflakeDriver extends query_orchestrator_1.BaseDriver {
|
|
|
403
403
|
SELECT COLUMNS.COLUMN_NAME as "column_name",
|
|
404
404
|
COLUMNS.TABLE_NAME as "table_name",
|
|
405
405
|
COLUMNS.TABLE_SCHEMA as "table_schema",
|
|
406
|
-
COLUMNS.DATA_TYPE as "data_type"
|
|
406
|
+
CASE WHEN COLUMNS.NUMERIC_SCALE = 0 AND COLUMNS.DATA_TYPE = 'NUMBER' THEN 'int' ELSE COLUMNS.DATA_TYPE END as "data_type"
|
|
407
407
|
FROM INFORMATION_SCHEMA.COLUMNS
|
|
408
408
|
WHERE COLUMNS.TABLE_SCHEMA NOT IN ('INFORMATION_SCHEMA')
|
|
409
409
|
`;
|
|
@@ -419,7 +419,7 @@ class SnowflakeDriver extends query_orchestrator_1.BaseDriver {
|
|
|
419
419
|
async tableColumnTypes(table) {
|
|
420
420
|
const [schema, name] = table.split('.');
|
|
421
421
|
const columns = await this.query(`SELECT COLUMNS.COLUMN_NAME,
|
|
422
|
-
COLUMNS.DATA_TYPE
|
|
422
|
+
CASE WHEN COLUMNS.NUMERIC_SCALE = 0 AND COLUMNS.DATA_TYPE = 'NUMBER' THEN 'int' ELSE COLUMNS.DATA_TYPE END as DATA_TYPE
|
|
423
423
|
FROM INFORMATION_SCHEMA.COLUMNS
|
|
424
424
|
WHERE TABLE_NAME = ${this.param(0)} AND TABLE_SCHEMA = ${this.param(1)}
|
|
425
425
|
ORDER BY ORDINAL_POSITION`, [name.toUpperCase(), schema.toUpperCase()]);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@cubejs-backend/snowflake-driver",
|
|
3
3
|
"description": "Cube.js Snowflake database driver",
|
|
4
4
|
"author": "Cube Dev, Inc.",
|
|
5
|
-
"version": "0.29.
|
|
5
|
+
"version": "0.29.42",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/cube-js/cube.js.git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-sdk/client-s3": "^3.16.0",
|
|
29
29
|
"@aws-sdk/s3-request-presigner": "^3.16.0",
|
|
30
|
-
"@cubejs-backend/query-orchestrator": "^0.29.
|
|
31
|
-
"@cubejs-backend/shared": "^0.29.
|
|
30
|
+
"@cubejs-backend/query-orchestrator": "^0.29.37",
|
|
31
|
+
"@cubejs-backend/shared": "^0.29.37",
|
|
32
32
|
"@google-cloud/storage": "^5.8.5",
|
|
33
33
|
"date-fns-timezone": "^0.1.4",
|
|
34
34
|
"snowflake-sdk": "^1.6.1"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@types/snowflake-sdk": "^1.5.1",
|
|
46
46
|
"typescript": "~4.1.5"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "d05b5199da6e06f4d8baaed1baddb56cf1538637"
|
|
49
49
|
}
|