[teiid-issues] [JBoss JIRA] (TEIID-5987) salesforce self join involving implicit null check on parentid field not working

Steven Hawkins (Jira) issues at jboss.org
Mon Jul 13 13:08:00 EDT 2020


    [ https://issues.redhat.com/browse/TEIID-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229180#comment-14229180 ] 

Steven Hawkins commented on TEIID-5987:
---------------------------------------

Likely related to the parent handling described in https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_null.htm

> salesforce self join involving implicit null check on parentid field not working
> --------------------------------------------------------------------------------
>
>                 Key: TEIID-5987
>                 URL: https://issues.redhat.com/browse/TEIID-5987
>             Project: Teiid
>          Issue Type: Bug
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>            Priority: Major
>
> I'm not sure about the full scope of this issue.  In testing TEIIDSB-213 I can see that a query such as:
> select a1.id from Account a1 inner join account a2 on a1.parentid = a2.id
> which results in the source query with the implicit null check:
> SELECT Id FROM Account WHERE ParentId != NULL
> actually returns results, but no are expected.
> The explicit non-join query query
> select a1.id from Account a1 where a1.parentid is not null
> result in:
> SELECT Id FROM Account WHERE ParentId != NULL
> but returns no results
> So there is something in the join handling that is not working as expected.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the teiid-issues mailing list