@lightdash/warehouses 2.228.1 → 2.229.1

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.
Files changed (90) hide show
  1. package/dist/.tsbuildinfo.build +1 -0
  2. package/package.json +4 -4
  3. package/dist/.tsbuildinfo +0 -1
  4. package/dist/ssh/sshTunnelFailure.test.d.ts +0 -2
  5. package/dist/ssh/sshTunnelFailure.test.d.ts.map +0 -1
  6. package/dist/ssh/sshTunnelFailure.test.js +0 -90
  7. package/dist/validateWarehouseColumnReferences.test.d.ts +0 -2
  8. package/dist/validateWarehouseColumnReferences.test.d.ts.map +0 -1
  9. package/dist/validateWarehouseColumnReferences.test.js +0 -168
  10. package/dist/warehouseClients/AthenaWarehouseClient.test.d.ts +0 -2
  11. package/dist/warehouseClients/AthenaWarehouseClient.test.d.ts.map +0 -1
  12. package/dist/warehouseClients/AthenaWarehouseClient.test.js +0 -261
  13. package/dist/warehouseClients/BigqueryWarehouseClient.mock.d.ts +0 -83
  14. package/dist/warehouseClients/BigqueryWarehouseClient.mock.d.ts.map +0 -1
  15. package/dist/warehouseClients/BigqueryWarehouseClient.mock.js +0 -130
  16. package/dist/warehouseClients/BigqueryWarehouseClient.test.d.ts +0 -2
  17. package/dist/warehouseClients/BigqueryWarehouseClient.test.d.ts.map +0 -1
  18. package/dist/warehouseClients/BigqueryWarehouseClient.test.js +0 -493
  19. package/dist/warehouseClients/ClickhouseWarehouseClient.test.d.ts +0 -2
  20. package/dist/warehouseClients/ClickhouseWarehouseClient.test.d.ts.map +0 -1
  21. package/dist/warehouseClients/ClickhouseWarehouseClient.test.js +0 -115
  22. package/dist/warehouseClients/DatabricksWarehouseClient.mock.d.ts +0 -17
  23. package/dist/warehouseClients/DatabricksWarehouseClient.mock.d.ts.map +0 -1
  24. package/dist/warehouseClients/DatabricksWarehouseClient.mock.js +0 -111
  25. package/dist/warehouseClients/DatabricksWarehouseClient.test.d.ts +0 -2
  26. package/dist/warehouseClients/DatabricksWarehouseClient.test.d.ts.map +0 -1
  27. package/dist/warehouseClients/DatabricksWarehouseClient.test.js +0 -592
  28. package/dist/warehouseClients/DatabricksWarehouseStartupRetry.test.d.ts +0 -2
  29. package/dist/warehouseClients/DatabricksWarehouseStartupRetry.test.d.ts.map +0 -1
  30. package/dist/warehouseClients/DatabricksWarehouseStartupRetry.test.js +0 -129
  31. package/dist/warehouseClients/DuckdbWarehouseClient.embedded.test.d.ts +0 -2
  32. package/dist/warehouseClients/DuckdbWarehouseClient.embedded.test.d.ts.map +0 -1
  33. package/dist/warehouseClients/DuckdbWarehouseClient.embedded.test.js +0 -92
  34. package/dist/warehouseClients/DuckdbWarehouseClient.test.d.ts +0 -2
  35. package/dist/warehouseClients/DuckdbWarehouseClient.test.d.ts.map +0 -1
  36. package/dist/warehouseClients/DuckdbWarehouseClient.test.js +0 -1749
  37. package/dist/warehouseClients/MotherduckErrorClassifier.test.d.ts +0 -2
  38. package/dist/warehouseClients/MotherduckErrorClassifier.test.d.ts.map +0 -1
  39. package/dist/warehouseClients/MotherduckErrorClassifier.test.js +0 -31
  40. package/dist/warehouseClients/MotherduckInstanceCache.catalog.test.d.ts +0 -2
  41. package/dist/warehouseClients/MotherduckInstanceCache.catalog.test.d.ts.map +0 -1
  42. package/dist/warehouseClients/MotherduckInstanceCache.catalog.test.js +0 -52
  43. package/dist/warehouseClients/MotherduckInstanceCache.integration.test.d.ts +0 -2
  44. package/dist/warehouseClients/MotherduckInstanceCache.integration.test.d.ts.map +0 -1
  45. package/dist/warehouseClients/MotherduckInstanceCache.integration.test.js +0 -172
  46. package/dist/warehouseClients/MotherduckInstanceCache.security.test.d.ts +0 -2
  47. package/dist/warehouseClients/MotherduckInstanceCache.security.test.d.ts.map +0 -1
  48. package/dist/warehouseClients/MotherduckInstanceCache.security.test.js +0 -192
  49. package/dist/warehouseClients/MotherduckInstanceCache.test.d.ts +0 -2
  50. package/dist/warehouseClients/MotherduckInstanceCache.test.d.ts.map +0 -1
  51. package/dist/warehouseClients/MotherduckInstanceCache.test.js +0 -302
  52. package/dist/warehouseClients/PostgresWarehouseClient.mock.d.ts +0 -8
  53. package/dist/warehouseClients/PostgresWarehouseClient.mock.d.ts.map +0 -1
  54. package/dist/warehouseClients/PostgresWarehouseClient.mock.js +0 -66
  55. package/dist/warehouseClients/PostgresWarehouseClient.test.d.ts +0 -2
  56. package/dist/warehouseClients/PostgresWarehouseClient.test.d.ts.map +0 -1
  57. package/dist/warehouseClients/PostgresWarehouseClient.test.js +0 -371
  58. package/dist/warehouseClients/RedshiftWarehouseClient.test.d.ts +0 -2
  59. package/dist/warehouseClients/RedshiftWarehouseClient.test.d.ts.map +0 -1
  60. package/dist/warehouseClients/RedshiftWarehouseClient.test.js +0 -126
  61. package/dist/warehouseClients/SnowflakeWarehouseClient.mock.d.ts +0 -41
  62. package/dist/warehouseClients/SnowflakeWarehouseClient.mock.d.ts.map +0 -1
  63. package/dist/warehouseClients/SnowflakeWarehouseClient.mock.js +0 -184
  64. package/dist/warehouseClients/SnowflakeWarehouseClient.test.d.ts +0 -2
  65. package/dist/warehouseClients/SnowflakeWarehouseClient.test.d.ts.map +0 -1
  66. package/dist/warehouseClients/SnowflakeWarehouseClient.test.js +0 -777
  67. package/dist/warehouseClients/TrinoWarehouseClient.mock.d.ts +0 -23
  68. package/dist/warehouseClients/TrinoWarehouseClient.mock.d.ts.map +0 -1
  69. package/dist/warehouseClients/TrinoWarehouseClient.mock.js +0 -102
  70. package/dist/warehouseClients/TrinoWarehouseClient.test.d.ts +0 -2
  71. package/dist/warehouseClients/TrinoWarehouseClient.test.d.ts.map +0 -1
  72. package/dist/warehouseClients/TrinoWarehouseClient.test.js +0 -230
  73. package/dist/warehouseClients/WarehouseClient.mock.d.ts +0 -13
  74. package/dist/warehouseClients/WarehouseClient.mock.d.ts.map +0 -1
  75. package/dist/warehouseClients/WarehouseClient.mock.js +0 -51
  76. package/dist/warehouseClients/numericKinds.test.d.ts +0 -2
  77. package/dist/warehouseClients/numericKinds.test.d.ts.map +0 -1
  78. package/dist/warehouseClients/numericKinds.test.js +0 -168
  79. package/dist/warehouseClients/pgProtocolGuard.integration.test.d.ts +0 -2
  80. package/dist/warehouseClients/pgProtocolGuard.integration.test.d.ts.map +0 -1
  81. package/dist/warehouseClients/pgProtocolGuard.integration.test.js +0 -93
  82. package/dist/warehouseClients/pgProtocolGuard.test.d.ts +0 -2
  83. package/dist/warehouseClients/pgProtocolGuard.test.d.ts.map +0 -1
  84. package/dist/warehouseClients/pgProtocolGuard.test.js +0 -48
  85. package/dist/warehouseClients/redshiftIamCredentials.test.d.ts +0 -2
  86. package/dist/warehouseClients/redshiftIamCredentials.test.d.ts.map +0 -1
  87. package/dist/warehouseClients/redshiftIamCredentials.test.js +0 -210
  88. package/dist/warehouseClients/timestampDomain.test.d.ts +0 -2
  89. package/dist/warehouseClients/timestampDomain.test.d.ts.map +0 -1
  90. 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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=SnowflakeWarehouseClient.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnowflakeWarehouseClient.test.d.ts","sourceRoot":"","sources":["../../src/warehouseClients/SnowflakeWarehouseClient.test.ts"],"names":[],"mappings":""}