You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/03/26 23:04:54 UTC

[jira] [Commented] (CALCITE-613) Implicitly convert character values in comparisons

    [ https://issues.apache.org/jira/browse/CALCITE-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14382783#comment-14382783 ] 

Julian Hyde commented on CALCITE-613:
-------------------------------------

I have pushed a fix to this issue to https://github.com/julianhyde/incubator-calcite/tree/613. [~seanhychu], Please review & test before I commit to master.

> Implicitly convert character values in comparisons
> --------------------------------------------------
>
>                 Key: CALCITE-613
>                 URL: https://issues.apache.org/jira/browse/CALCITE-613
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Sean Hsuan-Yi Chu
>            Assignee: Julian Hyde
>             Fix For: next
>
>
> In relational DB such as Postgres, this query works fine.
> "select ... from ... where column (INT type) between '10' and '11'"
> Calcite blocks this query early by the fact that data types "char" & "integer" are not directly compatible. However, this is very common for people to filter columns with date types. For example,
> "...where date between '1911-01-01' and '1911-01-02' "
> To relax this type check when comparing with literals can help improve usability.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)