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

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

     [ https://issues.apache.org/jira/browse/FLINK-24599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timo Walther closed FLINK-24599.
--------------------------------
    Fix Version/s: 1.15.0
       Resolution: Fixed

Fixed in master: fbc086f2fd63dac4af3e104ba4011e864781139a

> 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
>            Assignee: Marios Trivyzas
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.15.0
>
>
> 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)