arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[Java] Are the constraints of not-nullable MapVector necessary in Java?

Open whutjs opened this issue 4 months ago • 1 comments

There are two not-nullable constraints in the Java implementation of MapVector:

  1. Map data should be a non-nullable struct type; https://github.com/apache/arrow/blob/d4516c5386f84619dfdf2a9f72fed6d7df89704c/java/vector/src/main/java/org/apache/arrow/vector/complex/MapVector.java#L98
  2. Map data key type should be a non-nullable; https://github.com/apache/arrow/blob/d4516c5386f84619dfdf2a9f72fed6d7df89704c/java/vector/src/main/java/org/apache/arrow/vector/complex/MapVector.java#L105

Are these constraints necessary? Because I cannot find these constraints in the Arrow Specifications .

Component(s)

Java

whutjs avatar Oct 15 '24 02:10 whutjs