Changeset 23971
- Timestamp:
- Apr 24, 2009, 2:25:24 PM (17 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 2 edited
-
magictool_toprocess_inputs.sql (modified) (3 diffs)
-
magictool_toprocess_tree.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/magictool_toprocess_inputs.sql
r23389 r23971 1 SELECT 1 SELECT * FROM 2 (SELECT 2 3 magicTree.*, 4 rawExp.exp_id, 3 5 rawExp.camera, 4 rawExp.exp_id, 5 diffSkyfile.path_base, 6 -- diffSkyfile.path_base, 6 7 magicRun.workdir, 7 8 -- convert magic_id into a boolean value (1 or 0) 8 9 -- note that the type stays a 64 bit int 9 magicNodeResult.magic_id IS TRUE as done 10 magicNodeResult.magic_id IS TRUE as done, 11 magicNodeResult.fault IS TRUE as bad, 12 warpSkyfile.uri as template_uri 10 13 FROM magicTree 11 14 JOIN magicRun USING(magic_id) … … 14 17 ON magicInputSkyfile.diff_id = diffSkyfile.diff_id 15 18 AND magicInputSkyfile.node = diffSkyfile.skycell_id 19 JOIN diffInputSkyfile 20 ON diffSkyfile.diff_id = diffInputSkyfile.diff_id 21 AND diffSkyfile.skycell_id = diffInputSkyfile.skycell_id 22 JOIN warpSkyfile 23 ON diffInputSkyfile.warp2 = warpSkyfile.warp_id 24 AND diffInputSkyfile.skycell_id = warpSkyfile.skycell_id 16 25 JOIN rawExp USING(exp_id) 17 26 LEFT JOIN magicNodeResult … … 22 31 AND magicNodeResult.magic_id IS NULL 23 32 AND magicNodeResult.node IS NULL 33 -- where hook 1 %s 34 UNION 35 SELECT 36 magicTree.*, 37 rawExp.exp_id, 38 rawExp.camera, 39 -- diffSkyfile.path_base, 40 magicRun.workdir, 41 -- convert magic_id into a boolean value (1 or 0) 42 -- note that the type stays a 64 bit int 43 magicNodeResult.magic_id IS TRUE as done, 44 magicNodeResult.fault IS TRUE as bad, 45 stackSumSkyfile.uri as template_uri 46 FROM magicTree 47 JOIN magicRun USING(magic_id) 48 JOIN magicInputSkyfile USING(magic_id, node) 49 JOIN diffSkyfile 50 ON magicInputSkyfile.diff_id = diffSkyfile.diff_id 51 AND magicInputSkyfile.node = diffSkyfile.skycell_id 52 JOIN diffInputSkyfile 53 ON diffSkyfile.diff_id = diffInputSkyfile.diff_id 54 AND diffSkyfile.skycell_id = diffInputSkyfile.skycell_id 55 JOIN stackSumSkyfile 56 ON diffInputSkyfile.stack2 = stackSumSkyfile.stack_id 57 JOIN rawExp USING(exp_id) 58 LEFT JOIN magicNodeResult 59 ON magicTree.magic_id = magicNodeResult.magic_id 60 AND magicTree.node = magicNodeResult.node 61 WHERE 62 magicRun.state = 'new' 63 AND magicNodeResult.magic_id IS NULL 64 AND magicNodeResult.node IS NULL 65 -- where hook 2 %s 66 ) as foo -
trunk/ippTools/share/magictool_toprocess_tree.sql
r23389 r23971 7 7 -- note that the type stays a 64 bit int 8 8 magicNodeResult.magic_id IS TRUE as done, 9 magicNodeResult.fault IS TRUE as bad 9 magicNodeResult.fault IS TRUE as bad, 10 'notused' as template_uri 10 11 FROM magicTree 11 12 JOIN magicRun USING(magic_id)
Note:
See TracChangeset
for help on using the changeset viewer.
