You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2020/03/27 17:07:00 UTC

[jira] [Resolved] (CALCITE-3882) Remove duplicated code from SqlTypeAssignmentRule

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

Stamatis Zampetakis resolved CALCITE-3882.
------------------------------------------
    Fix Version/s: 1.23.0
       Resolution: Fixed

Fixed inĀ [1c261ebeb65e775b908cb878e905410ce78cda80|https://github.com/apache/calcite/commit/1c261ebeb65e775b908cb878e905410ce78cda80]. Thanks for the PR [~winipanda]!

> Remove duplicated code from SqlTypeAssignmentRule
> -------------------------------------------------
>
>                 Key: CALCITE-3882
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3882
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: TANG Wen-hui
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.23.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {code:java}
> for (SqlTypeName interval : SqlTypeName.DAY_INTERVAL_TYPES) {
>  rules.add(interval, SqlTypeName.DAY_INTERVAL_TYPES);
> }
> for (SqlTypeName interval : SqlTypeName.DAY_INTERVAL_TYPES) {
>  final Set<SqlTypeName> dayIntervalTypes = SqlTypeName.DAY_INTERVAL_TYPES;
>  rules.add(interval, dayIntervalTypes);
> }{code}



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