Project: datamanagement
Issue DM-2864: Fix bug related to selecting rows by objectId from non-director table
The following example illustrates the problem: Let's select one raw from qservTest_case01_qserv {code} select sourceId, objectId FROM Source LIMIT 1; +-------------------+-----------------+ | sourceId | objectId | +-------------------+-----------------+ | 29763859300222250 | 386942193651348 | +-------------------+-----------------+ {code} Then select it, but use "sourceId" in the query, all good here: {code} select sourceId, objectId FROM Source WHERE sourceId=29763859300222250; +-------------------+-----------------+ | sourceId | objectId | +-------------------+-----------------+ | 29763859300222250 | 386942193651348 | +-------------------+-----------------+ {code} But if we add "objectId", the row is not found: {code} select sourceId, objectId FROM Source WHERE sourceId=29763859300222250 and objectId=386942193651348; Empty set (0.09 sec) {code} Similarly, even without sourceId constraint, the query fails: {code} select sourceId, objectId FROM Source WHERE objectId=386942193651348; Empty set (0.09 sec) {code}
Story points: 8