[teiid-issues] [JBoss JIRA] (TEIID-5153) RAND function gives same results in view

dalex dalex (JIRA) issues at jboss.org
Thu Nov 30 11:22:00 EST 2017


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

dalex dalex commented on TEIID-5153:
------------------------------------

Hi [~shawkins] it seems that I found a potential problem related to the new removal algorithm introduced by you 
in the RuleCollapseSource.removeUnnecessaryInlineView method. If I set in debug mode RequestMessage.rowLimit field as 0 then
Teiid won't add a LIMIT clause in the end of original query (Request.generatePlan method, a check on requestMsg.getRowLimit() > 0 expression) and
we get the same error which was described in TEIID-3846 issue. Could you please check in additional?

> RAND function gives same results in view
> ----------------------------------------
>
>                 Key: TEIID-5153
>                 URL: https://issues.jboss.org/browse/TEIID-5153
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 9.3.4
>         Environment: teiid-9.3.4 on WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final)
>            Reporter: dalex dalex
>            Assignee: Steven Hawkins
>            Priority: Critical
>             Fix For: 9.3.5, 10.1, 10.0.1
>
>
> When using patched PostgreSQLExecutionFactory class to push down RAND function it starts to give the same values in a view. I wanted to push down RAND function in PostgreSQL for a while and noticed the bug related to identical values when using RAND function through a select in a view.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the teiid-issues mailing list