You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2021/10/20 07:47:00 UTC

[jira] [Created] (FLINK-24599) Make checking for type root and family less verbose

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)