- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/share (modified) (1 prop)
-
ippTools/share/disttool_toadvance.sql (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ippTools/share
- Property svn:ignore
-
old new 1 1 Makefile.in 2 2 Makefile 3 pxadmin_create_mirror_tables.sql
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ippTools/share/disttool_toadvance.sql
r23352 r24244 3 3 stage, 4 4 stage_id, 5 outroot 5 CONCAT_WS('.', outroot, CONVERT(dist_id, CHAR)) as outdir, 6 label, 7 clean 6 8 FROM 7 9 ( 8 -- raw stage 9 SELECT 10 -- raw stage not clean 11 SELECT 10 12 distRun.dist_id, 11 13 stage, 12 14 stage_id, 13 outroot 15 outroot, 16 label, 17 clean 14 18 FROM distRun 15 19 JOIN rawImfile ON stage_id = rawImfile.exp_id … … 19 23 WHERE 20 24 distRun.state = 'new' 25 AND distRun.clean = 0 21 26 AND distRun.fault = 0 22 27 AND distRun.stage = 'raw' … … 28 33 AND SUM(distComponent.fault) = 0 29 34 UNION 30 -- c hip stage31 SELECT 35 -- clean distribution of raw files (dbinfo only) only 1 component 36 SELECT 32 37 distRun.dist_id, 33 38 stage, 34 39 stage_id, 35 outroot 40 outroot, 41 label, 42 clean 43 FROM distRun 44 LEFT JOIN distComponent 45 ON distRun.dist_id = distComponent.dist_id 46 WHERE 47 distRun.state = 'new' 48 AND distRun.clean 49 AND distRun.fault = 0 50 AND distRun.stage = 'raw' 51 AND distComponent.component IS NOT NULL 52 AND distComponent.fault = 0 53 UNION 54 -- chip stage 55 SELECT 56 distRun.dist_id, 57 stage, 58 stage_id, 59 outroot, 60 label, 61 clean 36 62 FROM distRun 37 63 JOIN chipProcessedImfile ON stage_id = chipProcessedImfile.chip_id … … 50 76 AND SUM(distComponent.fault) = 0 51 77 UNION 52 -- warp stage 53 SELECT 78 -- camera stage 79 SELECT distRun.dist_id, 80 stage, 81 stage_id, 82 outroot, 83 distRun.label, 84 clean 85 FROM distRun 86 JOIN camRun ON stage_id = cam_id 87 JOIN chipRun USING(chip_id) 88 LEFT JOIN distComponent USING(dist_id) 89 WHERE 90 distRun.state = 'new' 91 AND distRun.fault = 0 92 AND distComponent.fault = 0 93 AND distRun.stage = 'camera' 94 -- AND ((chipRun.magicked AND camRun.state = 'full') OR distRun.no_magic) 95 -- AND (camRun.state = 'full' OR (distRun.clean and camRun.state = 'cleaned')) 96 UNION 97 -- fake stage 98 SELECT 54 99 distRun.dist_id, 55 100 stage, 56 101 stage_id, 57 outroot 102 outroot, 103 label, 104 clean 105 FROM distRun 106 JOIN fakeProcessedImfile ON stage_id = fakeProcessedImfile.fake_id 107 LEFT JOIN distComponent 108 ON distComponent.dist_id = distRun.dist_id 109 AND distComponent.component = fakeProcessedImfile.class_id 110 WHERE 111 distRun.state = 'new' 112 AND distRun.fault = 0 113 AND distRun.stage = 'fake' 114 GROUP BY 115 dist_id, 116 fakeProcessedImfile.fake_id 117 HAVING 118 COUNT(fakeProcessedImfile.class_id) = COUNT(distComponent.component) 119 AND SUM(distComponent.fault) = 0 120 UNION 121 -- warp stage 122 SELECT 123 distRun.dist_id, 124 stage, 125 stage_id, 126 outroot, 127 label, 128 clean 58 129 FROM distRun 59 130 JOIN warpSkyfile on stage_id = warp_id … … 66 137 AND distRun.stage = 'warp' 67 138 -- AND warpSkyfile.fault = 0 68 -- AND warpSkyfile. ignored= 0139 -- AND warpSkyfile.quality = 0 69 140 GROUP BY 70 141 distRun.dist_id, … … 75 146 UNION 76 147 -- diff stage 77 SELECT DISTINCT148 SELECT 78 149 distRun.dist_id, 79 150 stage, 80 151 stage_id, 81 outroot 152 outroot, 153 distRun.label, 154 clean 82 155 FROM distRun 83 156 JOIN diffSkyfile 84 ON distRun.dist_id = diffSkyfile.diff_id157 ON stage_id = diffSkyfile.diff_id 85 158 LEFT JOIN distComponent 86 159 ON distRun.dist_id = distComponent.dist_id … … 99 172 UNION 100 173 -- stack stage 101 SELECT 174 SELECT 102 175 distRun.dist_id, 103 176 stage, 104 177 stage_id, 105 outroot 178 outroot, 179 label, 180 clean 106 181 FROM distRun 107 182 JOIN stackSumSkyfile on stage_id = stack_id
Note:
See TracChangeset
for help on using the changeset viewer.
