vibhatha commented on code in PR #41752:
URL: https://github.com/apache/arrow/pull/41752#discussion_r1609134402


##########
java/vector/src/main/java/org/apache/arrow/vector/BaseVariableWidthViewVector.java:
##########
@@ -1345,7 +1366,29 @@ public void copyFrom(int fromIndex, int thisIndex, 
ValueVector from) {
    */
   @Override
   public void copyFromSafe(int fromIndex, int thisIndex, ValueVector from) {
-    throw new UnsupportedOperationException("copyFromSafe is not supported for 
VariableWidthVector");
+    Preconditions.checkArgument(this.getMinorType() == from.getMinorType());

Review Comment:
   Ah, right. I will clean up. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to