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; }