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


##########
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:
   Add check:
   
   String dimKey = String.format("field.%s.vector-dim", field.name());
   Preconditions.checkArgument(
                           properties.containsKey(dimKey),
                           "When setting '"
                                   + CoreOptions.VECTOR_FIELD.key()
                                   + "', you must also set 
'field.%s.vector-dim',"
                                   + " where %s is the name of the vector 
field.");



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