dolphindb 3.0.29 → 3.0.30
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/browser.js +16 -7
- package/browser.js.map +1 -1
- package/index.js +16 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/test.js +9 -12
- package/test.js.map +1 -1
package/browser.js
CHANGED
|
@@ -3103,13 +3103,22 @@ export class DDB {
|
|
|
3103
3103
|
first = false;
|
|
3104
3104
|
}
|
|
3105
3105
|
else {
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
}
|
|
3106
|
+
let rows;
|
|
3107
|
+
// 用了流数据过滤功能后,必然发 table
|
|
3108
|
+
if (obj.form === DdbForm.table) {
|
|
3109
|
+
data = obj.data();
|
|
3110
|
+
data.name ||= schema.name;
|
|
3111
|
+
rows = data.data.length;
|
|
3112
|
+
}
|
|
3113
|
+
else {
|
|
3114
|
+
const _data = obj.data();
|
|
3115
|
+
const { columns } = schema;
|
|
3116
|
+
rows = _data[0]?.length || 0;
|
|
3117
|
+
data = {
|
|
3118
|
+
...schema,
|
|
3119
|
+
data: seq(rows, i => zip_object(columns, seq(columns.length, j => _data[j][i])))
|
|
3120
|
+
};
|
|
3121
|
+
}
|
|
3113
3122
|
win.rows += rows;
|
|
3114
3123
|
win.segments.push(data);
|
|
3115
3124
|
win.objs.push(obj);
|