Inconsistent query results (A and B) doesn't return same results as (B and A) in certain condition

Description

A query like:
tenantId=? AND (historyEntryViews[*](sessionId=? AND isMissed=true) OR isRecontacted=true)

will produce a different result than

(historyEntryViews[*](sessionId=? AND isMissed=true) OR isRecontacted=true) AND tenantId=?

Workaround

None

Acceptance Test

None

Status

Assignee

Unassigned

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

None

Fix versions

None

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Open Source

Platform

All
Configure