Project: datamanagement
Issue DM-2887: Fix broken IN - it now takes first element only
IN is broken - it only uses the first element from the list. Here is the proof: {code} select COUNT(*) AS N FROM qservTest_case01_qserv.Source WHERE objectId=386950783579546; +------+ | N | +------+ | 56 | +------+ 1 row in set (0.10 sec) mysql> select count(*) AS N FROM qservTest_case01_qserv.Source WHERE objectId=386942193651348; +------+ | N | +------+ | 39 | +------+ 1 row in set (0.09 sec) mysql> select COUNT(*) AS N FROM qservTest_case01_qserv.Source WHERE objectId IN(386942193651348, 386950783579546); +------+ | N | +------+ | 39 | +------+ 1 row in set (0.09 sec) mysql> select COUNT(*) AS N FROM qservTest_case01_qserv.Source WHERE objectId IN(386950783579546, 386942193651348); +------+ | N | +------+ | 56 | +------+ 1 row in set (0.11 sec) {code}
Story points: 8