Stefanietry commented on code in PR #8019:
URL: https://github.com/apache/paimon/pull/8019#discussion_r3332991363
##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/SparkTypeUtils.java:
##########
@@ -242,6 +251,11 @@ public DataType visit(ArrayType arrayType) {
return DataTypes.createArrayType(elementType.accept(this),
elementType.isNullable());
}
+ @Override
+ public DataType visit(VectorType vectorType) {
+ return
DataTypes.createArrayType(vectorType.getElementType().accept(this),
vectorType.isNullable());
Review Comment:
Explicitly indicate that the array does not contain null:
public DataType visit(VectorType vectorType) {
return
DataTypes.createArrayType(vectorType.getElementType().accept(this), false);
}
Test: SparkTypeTest.testVectorType
--
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]