cshuo commented on code in PR #18877:
URL: https://github.com/apache/hudi/pull/18877#discussion_r3395816195
##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/util/HoodieSchemaConverter.java:
##########
@@ -238,6 +280,97 @@ public static HoodieSchema convertToSchema(LogicalType
logicalType, String rowNa
return nullable ? HoodieSchema.createNullable(schema) : schema;
}
+ private static Map<String, Integer> parseVectorColumns(String vectorColumns)
{
Review Comment:
fixed.
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieCatalog.java:
##########
@@ -319,9 +320,12 @@ public void createTable(ObjectPath tablePath,
CatalogBaseTable catalogTable, boo
&& !OptionsResolver.isAppendMode(conf)) {
throw new CatalogException("Primary key definition is missing");
}
+ LogicalType rowType =
resolvedSchema.toPhysicalRowDataType().getLogicalType();
+ HoodieSchemaConverter.validateVectorColumns(rowType,
conf.get(FlinkOptions.VECTOR_COLUMNS));
final String avroSchema = HoodieSchemaConverter.convertToSchema(
Review Comment:
fixed.
--
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]