Timo Walther created FLINK-24599:
------------------------------------

             Summary: Make checking for type root and family less verbose
                 Key: FLINK-24599
                 URL: https://issues.apache.org/jira/browse/FLINK-24599
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / API
            Reporter: Timo Walther


Currently, we use `LogicalTypeChecks.hasRoot()` and 
`LogicalTypeChecks.hasFamily()` for frequent checking of logical types. It was 
a conscious decision to not overload `LogicalType` with utility methods in the 
beginning. But the two mentioned methods would be nice to have available in 
`LogicalType` directly.

We suggest:
{code}
LogicalType#is(LogicalTypeRoot)
LogicalType#is(LogicalTypeFamily)
{code}





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to