@malloydata/db-duckdb 0.0.220-dev241204170603 → 0.0.220-dev241205182408
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/duckdb.spec.js +1 -8
- package/dist/duckdb_common.js +1 -9
- package/package.json +2 -2
package/dist/duckdb.spec.js
CHANGED
|
@@ -106,14 +106,7 @@ describe('DuckDBConnection', () => {
|
|
|
106
106
|
it('parses arrays', () => {
|
|
107
107
|
const structDef = makeStructDef();
|
|
108
108
|
connection.fillStructDefFromTypeMap(structDef, { test: ARRAY_SCHEMA });
|
|
109
|
-
expect(structDef.fields[0]).toEqual({
|
|
110
|
-
name: 'test',
|
|
111
|
-
type: 'array',
|
|
112
|
-
elementTypeDef: intTyp,
|
|
113
|
-
join: 'many',
|
|
114
|
-
dialect: 'duckdb',
|
|
115
|
-
fields: (0, malloy_1.arrayEachFields)({ type: 'number', numberType: 'integer' }),
|
|
116
|
-
});
|
|
109
|
+
expect(structDef.fields[0]).toEqual((0, malloy_1.mkArrayDef)({ type: 'number', numberType: 'integer' }, 'test', 'duckdb'));
|
|
117
110
|
});
|
|
118
111
|
it('parses inline', () => {
|
|
119
112
|
const structDef = makeStructDef();
|
package/dist/duckdb_common.js
CHANGED
|
@@ -183,15 +183,7 @@ class DuckDBCommon extends connection_1.BaseConnection {
|
|
|
183
183
|
else {
|
|
184
184
|
if (arrayMatch) {
|
|
185
185
|
malloyType = this.dialect.sqlTypeToMalloyType(duckDBType);
|
|
186
|
-
|
|
187
|
-
type: 'array',
|
|
188
|
-
elementTypeDef: malloyType,
|
|
189
|
-
name,
|
|
190
|
-
dialect: this.dialectName,
|
|
191
|
-
join: 'many',
|
|
192
|
-
fields: (0, malloy_1.arrayEachFields)(malloyType),
|
|
193
|
-
};
|
|
194
|
-
structDef.fields.push(innerStructDef);
|
|
186
|
+
structDef.fields.push((0, malloy_1.mkArrayDef)(malloyType, name, this.dialectName));
|
|
195
187
|
}
|
|
196
188
|
else {
|
|
197
189
|
structDef.fields.push({ ...malloyType, name });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-duckdb",
|
|
3
|
-
"version": "0.0.220-
|
|
3
|
+
"version": "0.0.220-dev241205182408",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@duckdb/duckdb-wasm": "1.29.0",
|
|
44
|
-
"@malloydata/malloy": "^0.0.220-
|
|
44
|
+
"@malloydata/malloy": "^0.0.220-dev241205182408",
|
|
45
45
|
"@motherduck/wasm-client": "^0.6.6",
|
|
46
46
|
"apache-arrow": "^17.0.0",
|
|
47
47
|
"duckdb": "1.1.1",
|