arrow
arrow copied to clipboard
[Java] Are the constraints of not-nullable MapVector necessary in Java?
There are two not-nullable constraints in the Java implementation of MapVector:
- 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
- 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