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


##########
java/c/src/main/java/org/apache/arrow/c/BufferImportTypeVisitor.java:
##########
@@ -212,19 +215,21 @@ public List<ArrowBuf> visit(ArrowType.FloatingPoint type) 
{
 
   @Override
   public List<ArrowBuf> visit(ArrowType.Utf8 type) {
-    try (ArrowBuf offsets = importOffsets(type, VarCharVector.OFFSET_WIDTH)) {
-      final int start = offsets.getInt(0);
-      final int end = offsets.getInt(fieldNode.getLength() * (long) 
VarCharVector.OFFSET_WIDTH);
-      checkState(
-          end >= start,
-          "Offset buffer for type %s is malformed: start: %s, end: %s",
-          type,
-          start,
-          end);
-      final int len = end - start;

Review Comment:
   Not sure if this line was needed here? Or Am I missing something? 



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