JingsongLi commented on code in PR #8019:
URL: https://github.com/apache/paimon/pull/8019#discussion_r3331606366


##########
paimon-spark/paimon-spark-common/src/main/java/org/apache/paimon/spark/SparkCatalog.java:
##########
@@ -609,6 +607,17 @@ private Schema toInitialSchema(
                         field.dataType() instanceof 
org.apache.spark.sql.types.BinaryType,
                         "The type of blob field must be binary");
                 type = new BlobType();
+            } else if (vectorFields.contains(field.name())) {
+                Preconditions.checkArgument(

Review Comment:
   Integer.parseInt(properties.get(dimKey)) throws NumberFormatException: null 
when field.<name>.vector-dim is missing. Add Preconditions.checkArgument with a 
descriptive message.



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