Timm0 commented on code in PR #30239:
URL: https://github.com/apache/flink/pull/30239#discussion_r4784458355


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/materializedtable/EvolutionMaterializedTableMergeContext.java:
##########
@@ -101,7 +107,53 @@ public boolean hasConstraintDefinition() {
 
     @Override
     public Schema getMergedSchema() {
-        return mergeDeclaredSchema(declaredSchema, querySchema, 
dataTypeFactory, OPERATION_NAME);
+        final Schema mergedSchema =
+                mergeDeclaredSchema(
+                        declaredSchema, querySchemaToMerge(), dataTypeFactory, 
OPERATION_NAME);
+        return declaredSchema == null ? mergedSchema : 
withNotNullKeyColumns(mergedSchema);

Review Comment:
   Done. I removed `withNotNullKeyColumns`, so the resolver rejects a key on a 
nullable column, as in `materializeInto`. Both tests now expect the rejection, 
and the JavaDoc sentence is gone.



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