[teiid-issues] [JBoss JIRA] (TEIID-3722) Add an option to not widen comparisons to string

RH Bugzilla Integration (JIRA) issues at jboss.org
Fri Jul 7 07:07:00 EDT 2017


    [ https://issues.jboss.org/browse/TEIID-3722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13432841#comment-13432841 ] 

RH Bugzilla Integration commented on TEIID-3722:
------------------------------------------------

Jan Stastny <jstastny at redhat.com> changed the Status of [bug 1460324|https://bugzilla.redhat.com/show_bug.cgi?id=1460324] from ON_QA to ASSIGNED

> Add an option to not widen comparisons to string
> ------------------------------------------------
>
>                 Key: TEIID-3722
>                 URL: https://issues.jboss.org/browse/TEIID-3722
>             Project: Teiid
>          Issue Type: Quality Risk
>          Components: Query Engine
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>             Fix For: 8.12
>
>
> Our resolving logic considers anything with an implicit conversion to string to be a valid widening conversion in a comparison.  For example:
> int_col = '1a'
> will effectively become cast(int_col as string) = '1a'
> Or with timestamps:
> timestamp_col = '1970-01-01'
> becomes cast(timestamp_col as string) = '1970-01-01'
> In equality cases the optimizer will infer that the predicate is simply false, but when used with greater/less than comparison we'll still attempt the query with the widening conversion.
> This is most likely not the intent of the user.  It would be best to provide an option that would allow an exception to be thrown rather than assuming a query that may not match the user's expectations.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list