Skip to content

Commit 0f0eca9

Browse files
committed
use get child instead
1 parent 17d82fb commit 0f0eca9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

kernel/kernel-defaults/src/main/java/io/delta/kernel/defaults/internal/data/vector/DefaultVariantVector.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,13 @@ public byte[] getMetadata() {
8282
};
8383
}
8484

85-
public ColumnVector getValueVector() {
86-
return valueVector;
87-
}
88-
89-
public ColumnVector getMetadataVector() {
90-
return metadataVector;
85+
@Override
86+
public ColumnVector getChild(int ordinal) {
87+
checkArgument(ordinal >= 0 && ordinal < 2, "Invalid ordinal " + ordinal);
88+
if (ordinal == 0) {
89+
return valueVector;
90+
} else {
91+
return metadataVector;
92+
}
9193
}
9294
}

0 commit comments

Comments
 (0)