[
https://issues.apache.org/jira/browse/FLINK-24599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-24599:
-----------------------------------
Labels: pull-request-available (was: )
> 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
>
> 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)