dolphindb 3.0.120 → 3.0.122

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 CHANGED
@@ -828,8 +828,8 @@ export class DdbObj {
828
828
  // 构造 indexes
829
829
  const dv = new DataView(buf.buffer, buf.byteOffset);
830
830
  let i_value_start = 0;
831
- const size = Number(dv.getBigUint64(i_value_start, le));
832
- i_value_start += 8;
831
+ const size = Number(dv.getUint32(i_value_start, le));
832
+ i_value_start += 4;
833
833
  const indexes = new Array(size * 2);
834
834
  for (let i = 0; i < size; i++) {
835
835
  const type = dv.getUint32(i_value_start, le);
@@ -851,7 +851,8 @@ export class DdbObj {
851
851
  assert(form === DdbForm.vector, t('iotany sub vector 不支持非 vector 类型'));
852
852
  const sub_size = dv.getUint32(i_value_start, le);
853
853
  i_value_start += 8; // 同时跳过 sub_size 和 cols
854
- const [len, vector] = this.parse_vector_items(buf.subarray(i_value_start), le, sub_type, sub_size);
854
+ let [len, vector] = this.parse_vector_items(buf.subarray(i_value_start), le, sub_type, sub_size);
855
+ vector = converts(sub_type, vector, sub_size, le);
855
856
  i_value_start += len;
856
857
  sub_vec.set(sub_type, vector);
857
858
  }