koi2000 commented on code in PR #2856: URL: https://github.com/apache/incubator-hugegraph/pull/2856#discussion_r2286859120
########## hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/schema/IndexLabelAPI.java: ########## @@ -235,6 +235,13 @@ public void checkCreate(boolean isBatch) { E.checkArgumentNotNull(this.indexType, "The index type of index label '%s' " + "can't be null", this.name); + if(this.indexType == IndexType.VECTOR){ + E.checkArgumentNotNull(this.userdata, + "The user_data(dimension and metric) of vector index " + + "label '%s' " + + "can't be null", this.name); + } Review Comment: code format -- 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: issues-unsubscr...@hugegraph.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@hugegraph.apache.org For additional commands, e-mail: issues-h...@hugegraph.apache.org