@lightdash/warehouses 2.228.1 → 2.229.0
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/dist/.tsbuildinfo.build +1 -0
- package/package.json +4 -4
- package/dist/.tsbuildinfo +0 -1
- package/dist/ssh/sshTunnelFailure.test.d.ts +0 -2
- package/dist/ssh/sshTunnelFailure.test.d.ts.map +0 -1
- package/dist/ssh/sshTunnelFailure.test.js +0 -90
- package/dist/validateWarehouseColumnReferences.test.d.ts +0 -2
- package/dist/validateWarehouseColumnReferences.test.d.ts.map +0 -1
- package/dist/validateWarehouseColumnReferences.test.js +0 -168
- package/dist/warehouseClients/AthenaWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/AthenaWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/AthenaWarehouseClient.test.js +0 -261
- package/dist/warehouseClients/BigqueryWarehouseClient.mock.d.ts +0 -83
- package/dist/warehouseClients/BigqueryWarehouseClient.mock.d.ts.map +0 -1
- package/dist/warehouseClients/BigqueryWarehouseClient.mock.js +0 -130
- package/dist/warehouseClients/BigqueryWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/BigqueryWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/BigqueryWarehouseClient.test.js +0 -493
- package/dist/warehouseClients/ClickhouseWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/ClickhouseWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/ClickhouseWarehouseClient.test.js +0 -115
- package/dist/warehouseClients/DatabricksWarehouseClient.mock.d.ts +0 -17
- package/dist/warehouseClients/DatabricksWarehouseClient.mock.d.ts.map +0 -1
- package/dist/warehouseClients/DatabricksWarehouseClient.mock.js +0 -111
- package/dist/warehouseClients/DatabricksWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/DatabricksWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/DatabricksWarehouseClient.test.js +0 -592
- package/dist/warehouseClients/DatabricksWarehouseStartupRetry.test.d.ts +0 -2
- package/dist/warehouseClients/DatabricksWarehouseStartupRetry.test.d.ts.map +0 -1
- package/dist/warehouseClients/DatabricksWarehouseStartupRetry.test.js +0 -129
- package/dist/warehouseClients/DuckdbWarehouseClient.embedded.test.d.ts +0 -2
- package/dist/warehouseClients/DuckdbWarehouseClient.embedded.test.d.ts.map +0 -1
- package/dist/warehouseClients/DuckdbWarehouseClient.embedded.test.js +0 -92
- package/dist/warehouseClients/DuckdbWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/DuckdbWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/DuckdbWarehouseClient.test.js +0 -1749
- package/dist/warehouseClients/MotherduckErrorClassifier.test.d.ts +0 -2
- package/dist/warehouseClients/MotherduckErrorClassifier.test.d.ts.map +0 -1
- package/dist/warehouseClients/MotherduckErrorClassifier.test.js +0 -31
- package/dist/warehouseClients/MotherduckInstanceCache.catalog.test.d.ts +0 -2
- package/dist/warehouseClients/MotherduckInstanceCache.catalog.test.d.ts.map +0 -1
- package/dist/warehouseClients/MotherduckInstanceCache.catalog.test.js +0 -52
- package/dist/warehouseClients/MotherduckInstanceCache.integration.test.d.ts +0 -2
- package/dist/warehouseClients/MotherduckInstanceCache.integration.test.d.ts.map +0 -1
- package/dist/warehouseClients/MotherduckInstanceCache.integration.test.js +0 -172
- package/dist/warehouseClients/MotherduckInstanceCache.security.test.d.ts +0 -2
- package/dist/warehouseClients/MotherduckInstanceCache.security.test.d.ts.map +0 -1
- package/dist/warehouseClients/MotherduckInstanceCache.security.test.js +0 -192
- package/dist/warehouseClients/MotherduckInstanceCache.test.d.ts +0 -2
- package/dist/warehouseClients/MotherduckInstanceCache.test.d.ts.map +0 -1
- package/dist/warehouseClients/MotherduckInstanceCache.test.js +0 -302
- package/dist/warehouseClients/PostgresWarehouseClient.mock.d.ts +0 -8
- package/dist/warehouseClients/PostgresWarehouseClient.mock.d.ts.map +0 -1
- package/dist/warehouseClients/PostgresWarehouseClient.mock.js +0 -66
- package/dist/warehouseClients/PostgresWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/PostgresWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/PostgresWarehouseClient.test.js +0 -371
- package/dist/warehouseClients/RedshiftWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/RedshiftWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/RedshiftWarehouseClient.test.js +0 -126
- package/dist/warehouseClients/SnowflakeWarehouseClient.mock.d.ts +0 -41
- package/dist/warehouseClients/SnowflakeWarehouseClient.mock.d.ts.map +0 -1
- package/dist/warehouseClients/SnowflakeWarehouseClient.mock.js +0 -184
- package/dist/warehouseClients/SnowflakeWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/SnowflakeWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/SnowflakeWarehouseClient.test.js +0 -777
- package/dist/warehouseClients/TrinoWarehouseClient.mock.d.ts +0 -23
- package/dist/warehouseClients/TrinoWarehouseClient.mock.d.ts.map +0 -1
- package/dist/warehouseClients/TrinoWarehouseClient.mock.js +0 -102
- package/dist/warehouseClients/TrinoWarehouseClient.test.d.ts +0 -2
- package/dist/warehouseClients/TrinoWarehouseClient.test.d.ts.map +0 -1
- package/dist/warehouseClients/TrinoWarehouseClient.test.js +0 -230
- package/dist/warehouseClients/WarehouseClient.mock.d.ts +0 -13
- package/dist/warehouseClients/WarehouseClient.mock.d.ts.map +0 -1
- package/dist/warehouseClients/WarehouseClient.mock.js +0 -51
- package/dist/warehouseClients/numericKinds.test.d.ts +0 -2
- package/dist/warehouseClients/numericKinds.test.d.ts.map +0 -1
- package/dist/warehouseClients/numericKinds.test.js +0 -168
- package/dist/warehouseClients/pgProtocolGuard.integration.test.d.ts +0 -2
- package/dist/warehouseClients/pgProtocolGuard.integration.test.d.ts.map +0 -1
- package/dist/warehouseClients/pgProtocolGuard.integration.test.js +0 -93
- package/dist/warehouseClients/pgProtocolGuard.test.d.ts +0 -2
- package/dist/warehouseClients/pgProtocolGuard.test.d.ts.map +0 -1
- package/dist/warehouseClients/pgProtocolGuard.test.js +0 -48
- package/dist/warehouseClients/redshiftIamCredentials.test.d.ts +0 -2
- package/dist/warehouseClients/redshiftIamCredentials.test.d.ts.map +0 -1
- package/dist/warehouseClients/redshiftIamCredentials.test.js +0 -210
- package/dist/warehouseClients/timestampDomain.test.d.ts +0 -2
- package/dist/warehouseClients/timestampDomain.test.d.ts.map +0 -1
- package/dist/warehouseClients/timestampDomain.test.js +0 -101
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.expectedRow = exports.expectedFields = exports.expectedWarehouseSchema = exports.queryColumnsMock = exports.columns = exports.credentials = void 0;
|
|
4
|
-
const common_1 = require("@lightdash/common");
|
|
5
|
-
const SnowflakeWarehouseClient_1 = require("./SnowflakeWarehouseClient");
|
|
6
|
-
const WarehouseClient_mock_1 = require("./WarehouseClient.mock");
|
|
7
|
-
exports.credentials = {
|
|
8
|
-
type: common_1.WarehouseTypes.SNOWFLAKE,
|
|
9
|
-
account: '',
|
|
10
|
-
user: '',
|
|
11
|
-
password: '',
|
|
12
|
-
role: '',
|
|
13
|
-
database: '',
|
|
14
|
-
warehouse: '',
|
|
15
|
-
schema: '',
|
|
16
|
-
};
|
|
17
|
-
const columnBase = {
|
|
18
|
-
kind: 'COLUMN',
|
|
19
|
-
database_name: WarehouseClient_mock_1.config[0].database.toUpperCase(),
|
|
20
|
-
schema_name: WarehouseClient_mock_1.config[0].schema.toUpperCase(),
|
|
21
|
-
table_name: WarehouseClient_mock_1.config[0].table.toUpperCase(),
|
|
22
|
-
};
|
|
23
|
-
exports.columns = [
|
|
24
|
-
{
|
|
25
|
-
...columnBase,
|
|
26
|
-
column_name: 'MYSTRINGCOLUMN',
|
|
27
|
-
data_type: JSON.stringify({
|
|
28
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.TEXT,
|
|
29
|
-
length: 16777216,
|
|
30
|
-
byteLength: 16777216,
|
|
31
|
-
nullable: true,
|
|
32
|
-
fixed: false,
|
|
33
|
-
}),
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
...columnBase,
|
|
37
|
-
column_name: 'MYNUMBERCOLUMN',
|
|
38
|
-
data_type: JSON.stringify({
|
|
39
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.FIXED,
|
|
40
|
-
precision: 18,
|
|
41
|
-
scale: 0,
|
|
42
|
-
nullable: true,
|
|
43
|
-
}),
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
...columnBase,
|
|
47
|
-
column_name: 'MYDATECOLUMN',
|
|
48
|
-
data_type: JSON.stringify({
|
|
49
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.DATE,
|
|
50
|
-
nullable: true,
|
|
51
|
-
}),
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
...columnBase,
|
|
55
|
-
column_name: 'MYTIMESTAMPCOLUMN',
|
|
56
|
-
data_type: JSON.stringify({
|
|
57
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.TIMESTAMP_NTZ,
|
|
58
|
-
precision: 0,
|
|
59
|
-
scale: 9,
|
|
60
|
-
nullable: true,
|
|
61
|
-
}),
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
...columnBase,
|
|
65
|
-
column_name: 'MYBOOLEANCOLUMN',
|
|
66
|
-
data_type: JSON.stringify({
|
|
67
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.BOOLEAN,
|
|
68
|
-
nullable: true,
|
|
69
|
-
}),
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
...columnBase,
|
|
73
|
-
column_name: 'MYARRAYCOLUMN',
|
|
74
|
-
data_type: JSON.stringify({
|
|
75
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.ARRAY,
|
|
76
|
-
nullable: true,
|
|
77
|
-
}),
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
...columnBase,
|
|
81
|
-
column_name: 'MYOBJECTCOLUMN',
|
|
82
|
-
data_type: JSON.stringify({
|
|
83
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.OBJECT,
|
|
84
|
-
nullable: true,
|
|
85
|
-
}),
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
kind: 'COLUMN',
|
|
89
|
-
database_name: 'databaseNotInModel',
|
|
90
|
-
schema_name: 'schemaNotInModel',
|
|
91
|
-
table_name: 'tableNotInModel',
|
|
92
|
-
column_name: 'COLUMNNOTINMODEL',
|
|
93
|
-
data_type: JSON.stringify({
|
|
94
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.BOOLEAN,
|
|
95
|
-
nullable: true,
|
|
96
|
-
}),
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
kind: 'COLUMN',
|
|
100
|
-
database_name: columnBase.database_name,
|
|
101
|
-
schema_name: 'schemaNotInModel',
|
|
102
|
-
table_name: 'tableNotInModel',
|
|
103
|
-
column_name: 'COLUMNNOTINMODEL',
|
|
104
|
-
data_type: JSON.stringify({
|
|
105
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.BOOLEAN,
|
|
106
|
-
nullable: true,
|
|
107
|
-
}),
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
kind: 'COLUMN',
|
|
111
|
-
database_name: columnBase.database_name,
|
|
112
|
-
schema_name: columnBase.schema_name,
|
|
113
|
-
table_name: 'tableNotInModel',
|
|
114
|
-
column_name: 'COLUMNNOTINMODEL',
|
|
115
|
-
data_type: JSON.stringify({
|
|
116
|
-
type: SnowflakeWarehouseClient_1.SnowflakeTypes.BOOLEAN,
|
|
117
|
-
nullable: true,
|
|
118
|
-
}),
|
|
119
|
-
},
|
|
120
|
-
];
|
|
121
|
-
class ColumnMock {
|
|
122
|
-
constructor(name, type, scale = 0) {
|
|
123
|
-
this.name = name;
|
|
124
|
-
this.type = type;
|
|
125
|
-
this.scale = scale;
|
|
126
|
-
}
|
|
127
|
-
getName() {
|
|
128
|
-
return this.name;
|
|
129
|
-
}
|
|
130
|
-
getType() {
|
|
131
|
-
return this.type;
|
|
132
|
-
}
|
|
133
|
-
getScale() {
|
|
134
|
-
return this.scale;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
exports.queryColumnsMock = [
|
|
138
|
-
new ColumnMock('MYSTRINGCOLUMN', 'string'),
|
|
139
|
-
new ColumnMock('MYNUMBERCOLUMN', 'number'),
|
|
140
|
-
new ColumnMock('MYBOOLEANCOLUMN', 'boolean'),
|
|
141
|
-
new ColumnMock('MYDATECOLUMN', 'date'),
|
|
142
|
-
new ColumnMock('MYTIMESTAMPCOLUMN', 'timestamp'),
|
|
143
|
-
new ColumnMock('MYARRAYCOLUMN', 'array'),
|
|
144
|
-
new ColumnMock('MYOBJECTCOLUMN', 'object'),
|
|
145
|
-
];
|
|
146
|
-
exports.expectedWarehouseSchema = {
|
|
147
|
-
myDatabase: {
|
|
148
|
-
mySchema: {
|
|
149
|
-
myTable: {
|
|
150
|
-
MYSTRINGCOLUMN: common_1.DimensionType.STRING,
|
|
151
|
-
MYNUMBERCOLUMN: common_1.DimensionType.NUMBER,
|
|
152
|
-
MYDATECOLUMN: common_1.DimensionType.DATE,
|
|
153
|
-
MYTIMESTAMPCOLUMN: common_1.DimensionType.TIMESTAMP,
|
|
154
|
-
MYBOOLEANCOLUMN: common_1.DimensionType.BOOLEAN,
|
|
155
|
-
MYARRAYCOLUMN: common_1.DimensionType.STRING,
|
|
156
|
-
MYOBJECTCOLUMN: common_1.DimensionType.STRING,
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
// TIMESTAMP_NTZ in the catalog carries the naive domain
|
|
161
|
-
__lightdashTimestampDomains: {
|
|
162
|
-
myDatabase: {
|
|
163
|
-
mySchema: { myTable: { MYTIMESTAMPCOLUMN: 'naive' } },
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
};
|
|
167
|
-
exports.expectedFields = {
|
|
168
|
-
MYSTRINGCOLUMN: { type: common_1.DimensionType.STRING },
|
|
169
|
-
MYNUMBERCOLUMN: { type: common_1.DimensionType.NUMBER },
|
|
170
|
-
MYDATECOLUMN: { type: common_1.DimensionType.DATE },
|
|
171
|
-
MYTIMESTAMPCOLUMN: { type: common_1.DimensionType.TIMESTAMP },
|
|
172
|
-
MYBOOLEANCOLUMN: { type: common_1.DimensionType.BOOLEAN },
|
|
173
|
-
MYARRAYCOLUMN: { type: common_1.DimensionType.STRING },
|
|
174
|
-
MYOBJECTCOLUMN: { type: common_1.DimensionType.STRING },
|
|
175
|
-
};
|
|
176
|
-
exports.expectedRow = {
|
|
177
|
-
MYSTRINGCOLUMN: 'string value',
|
|
178
|
-
MYNUMBERCOLUMN: 100,
|
|
179
|
-
MYDATECOLUMN: new Date('2021-03-10T00:00:00.000Z'),
|
|
180
|
-
MYTIMESTAMPCOLUMN: new Date('1990-03-02T08:30:00.010Z'),
|
|
181
|
-
MYBOOLEANCOLUMN: false,
|
|
182
|
-
MYARRAYCOLUMN: '1,2,3',
|
|
183
|
-
MYOBJECTCOLUMN: '[object Object]',
|
|
184
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnowflakeWarehouseClient.test.d.ts","sourceRoot":"","sources":["../../src/warehouseClients/SnowflakeWarehouseClient.test.ts"],"names":[],"mappings":""}
|