lxy-9602 commented on code in PR #8355:
URL: https://github.com/apache/paimon/pull/8355#discussion_r3478679129
##########
paimon-core/src/main/java/org/apache/paimon/schema/SchemaValidation.java:
##########
@@ -695,6 +695,11 @@ private static void validateFileIndex(TableSchema schema) {
+ "Only CHAR/VARCHAR/STRING is supported.",
columnName,
keyType);
+ checkArgument(
+ options.mapStorageLayout(columnName) !=
MapStorageLayout.SHARED_SHREDDING,
Review Comment:
Agreed. I added schema validation for MAP shared-shredding to reject
unsupported file formats early.
--
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]