dolphindb 3.0.23 → 3.0.25
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 +20 -20
- package/browser.js.map +1 -1
- package/index.js +20 -20
- package/index.js.map +1 -1
- package/package.json +2 -2
package/browser.js
CHANGED
|
@@ -1868,7 +1868,11 @@ export function converts(type, value, rows, le, options) {
|
|
|
1868
1868
|
}
|
|
1869
1869
|
case DdbType.complex:
|
|
1870
1870
|
case DdbType.point:
|
|
1871
|
-
return seq(rows, i =>
|
|
1871
|
+
return seq(rows, i => {
|
|
1872
|
+
const x = value[2 * i];
|
|
1873
|
+
const y = value[2 * i + 1];
|
|
1874
|
+
return [x === nulls.double ? null : x, y === nulls.double ? null : y];
|
|
1875
|
+
});
|
|
1872
1876
|
case DdbType.uuid:
|
|
1873
1877
|
case DdbType.ipaddr:
|
|
1874
1878
|
case DdbType.int128:
|
|
@@ -1894,25 +1898,21 @@ export function converts(type, value, rows, le, options) {
|
|
|
1894
1898
|
return value.map(({ lengths, data, rows }) => {
|
|
1895
1899
|
let acc_len = 0;
|
|
1896
1900
|
return Array.prototype.map.call(lengths, (length) => {
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
}
|
|
1913
|
-
})();
|
|
1914
|
-
acc_len += length;
|
|
1915
|
-
return result;
|
|
1901
|
+
switch (type_) {
|
|
1902
|
+
case DdbType.decimal32:
|
|
1903
|
+
case DdbType.decimal64:
|
|
1904
|
+
case DdbType.decimal128:
|
|
1905
|
+
return converts(type_, { scale: value.scale, data: data.subarray(acc_len, acc_len += length) }, length, le, options);
|
|
1906
|
+
case DdbType.complex:
|
|
1907
|
+
case DdbType.point:
|
|
1908
|
+
return converts(type_, data.subarray(acc_len, acc_len += 2 * length), length, le, options);
|
|
1909
|
+
case DdbType.uuid:
|
|
1910
|
+
case DdbType.int128:
|
|
1911
|
+
case DdbType.ipaddr:
|
|
1912
|
+
return converts(type_, data.subarray(acc_len, acc_len += 16 * length), length, le, options);
|
|
1913
|
+
default:
|
|
1914
|
+
return converts(type_, data.subarray(acc_len, acc_len += length), length, le, options);
|
|
1915
|
+
}
|
|
1916
1916
|
});
|
|
1917
1917
|
}).flat();
|
|
1918
1918
|
}
|