dylanhz created FLINK-38841:
-------------------------------

             Summary: Nullability is lost in FamilyArgumentStrategy
                 Key: FLINK-38841
                 URL: https://issues.apache.org/jira/browse/FLINK-38841
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Planner
            Reporter: dylanhz


Currently, in FamilyArgumentStrategy#inferArgumentType, if the actualType 
belongs to the expectedFamily, the method returns the actualDataType directly, 
ignoring the expectedNullability constraint.
{code:java}
 // type is part of the family
if (actualType.getTypeRoot().getFamilies().contains(expectedFamily)) {
    return Optional.of(actualDataType);
}
{code}
This behavior is inconsistent with RootArgumentStrategy, where the 
expectedNullability is strictly enforced.





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to