From b0a0c08fa5f912f4a2270ddd08712fde62e67be9 Mon Sep 17 00:00:00 2001 From: Paul Taylor Date: Mon, 26 Feb 2018 19:04:30 -0800 Subject: [PATCH] use indicies.offset in DictionaryData constructor --- js/src/data.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/src/data.ts b/js/src/data.ts index cdd9f29a7a908..3bfb3209b696b 100644 --- a/js/src/data.ts +++ b/js/src/data.ts @@ -152,10 +152,9 @@ export class DictionaryData extends BaseData> public get indices() { return this._indices; } public get dictionary() { return this._dictionary; } constructor(type: Dictionary, dictionary: Vector, indices: Data>) { - super(type, indices.length, (indices as any)._nullCount); + super(type, indices.length, indices.offset, (indices as any)._nullCount); this._indices = indices; this._dictionary = dictionary; - this.length = this._indices.length; } public get nullCount() { return this._indices.nullCount; } public get nullBitmap() { return this._indices.nullBitmap; }