diff --git a/js/src/vector.ts b/js/src/vector.ts index f36c691e1bd27..6c2bbbb86a7d2 100644 --- a/js/src/vector.ts +++ b/js/src/vector.ts @@ -399,6 +399,9 @@ export class DictionaryVector extends Vector; constructor(data: Data>, view: View> = new DictionaryView(data.dictionary, new IntVector(data.indices))) { super(data as Data, view); + if (view instanceof ValidityView) { + view = (view as any).view; + } if (data instanceof DictionaryData && view instanceof DictionaryView) { this.indices = view.indices; this.dictionary = data.dictionary;