You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Marios Trivyzas (Jira)" <ji...@apache.org> on 2021/10/20 07:56:00 UTC
[jira] [Assigned] (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 ]
Marios Trivyzas reassigned FLINK-24599:
---------------------------------------
Assignee: Marios Trivyzas
> 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
>
> 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)