@malloydata/db-duckdb 0.0.222-dev241212154316 → 0.0.222-dev241212190052
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 -3
- package/dist/duckdb_common.js +1 -1
- package/package.json +2 -2
package/dist/duckdb.spec.js
CHANGED
|
@@ -106,7 +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((0, malloy_1.mkArrayDef)({ type: 'number', numberType: 'integer' }, 'test'
|
|
109
|
+
expect(structDef.fields[0]).toEqual((0, malloy_1.mkArrayDef)({ type: 'number', numberType: 'integer' }, 'test'));
|
|
110
110
|
});
|
|
111
111
|
it('parses inline', () => {
|
|
112
112
|
const structDef = makeStructDef();
|
|
@@ -114,7 +114,6 @@ describe('DuckDBConnection', () => {
|
|
|
114
114
|
expect(structDef.fields[0]).toEqual({
|
|
115
115
|
'name': 'test',
|
|
116
116
|
'type': 'record',
|
|
117
|
-
'dialect': 'duckdb',
|
|
118
117
|
'join': 'one',
|
|
119
118
|
'fields': [
|
|
120
119
|
{ 'name': 'a', ...dblType },
|
|
@@ -130,7 +129,6 @@ describe('DuckDBConnection', () => {
|
|
|
130
129
|
'name': 'test',
|
|
131
130
|
'type': 'array',
|
|
132
131
|
'elementTypeDef': { type: 'record_element' },
|
|
133
|
-
'dialect': 'duckdb',
|
|
134
132
|
'join': 'many',
|
|
135
133
|
'fields': [
|
|
136
134
|
{ 'name': 'a', 'numberType': 'float', 'type': 'number' },
|
package/dist/duckdb_common.js
CHANGED
|
@@ -97,7 +97,7 @@ class DuckDBCommon extends connection_1.BaseConnection {
|
|
|
97
97
|
const name = unquoteName(fieldName);
|
|
98
98
|
const dbType = typeMap[fieldName];
|
|
99
99
|
const malloyType = this.dialect.parseDuckDBType(dbType);
|
|
100
|
-
structDef.fields.push((0, malloy_1.mkFieldDef)(malloyType, name
|
|
100
|
+
structDef.fields.push((0, malloy_1.mkFieldDef)(malloyType, name));
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
async schemaFromQuery(infoQuery, structDef) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-duckdb",
|
|
3
|
-
"version": "0.0.222-
|
|
3
|
+
"version": "0.0.222-dev241212190052",
|
|
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.222-
|
|
44
|
+
"@malloydata/malloy": "^0.0.222-dev241212190052",
|
|
45
45
|
"@motherduck/wasm-client": "^0.6.6",
|
|
46
46
|
"apache-arrow": "^17.0.0",
|
|
47
47
|
"duckdb": "1.1.1",
|