Changeset 23777 for trunk/ippTools/share/disttool_pendingcomponent.sql
- Timestamp:
- Apr 9, 2009, 1:56:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/disttool_pendingcomponent.sql
r23737 r23777 1 1 SELECT * FROM ( 2 -- raw stage 2 3 SELECT 3 4 distRun.dist_id, … … 8 9 clean, 9 10 rawExp.camera, 10 outroot,11 CONCAT_WS('.', outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 11 12 rawImfile.uri as path_base, -- change this once rawImfile has path_base 12 13 chipProcessedImfile.path_base as chip_path_base, … … 41 42 WHERE 42 43 distRun.state = 'new' 44 AND distRun.clean = 0 43 45 AND distRun.stage = 'raw' 44 46 AND distComponent.dist_id IS NULL 45 47 AND (rawExp.magicked OR distRun.no_magic) 46 48 -- where hook 1 %s 49 UNION 50 -- raw stage clean (dbinfo only) 51 SELECT 52 distRun.dist_id, 53 distRun.label, 54 stage, 55 stage_id, 56 'exposure' AS component, 57 clean, 58 rawExp.camera, 59 CONCAT_WS('.', outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 60 NULL, 61 NULL, 62 NULL as state, 63 NULL as data_state, 64 0 as quality, 65 distRun.no_magic, 66 rawExp.magicked 67 FROM distRun 68 JOIN rawExp ON exp_id = stage_id 69 LEFT JOIN distComponent 70 ON distRun.dist_id = distComponent.dist_id 71 WHERE 72 distRun.state = 'new' 73 AND distRun.stage = 'raw' 74 AND distRun.clean 75 AND distComponent.dist_id IS NULL 76 -- where hook 2 %s 47 77 48 78 -- chip stage … … 56 86 clean, 57 87 rawExp.camera, 58 outroot,88 CONCAT_WS('.', outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 59 89 chipProcessedImfile.path_base, 60 90 chipProcessedImfile.path_base as chip_path_base, … … 77 107 AND (distRun.clean OR chipRun.magicked OR distRun.no_magic) 78 108 AND (chipRun.state = 'full' OR (distRun.clean AND chipRun.state = 'cleaned')) 79 -- where hook 2%s109 -- where hook 3 %s 80 110 UNION 81 111 SELECT … … 88 118 clean, 89 119 rawExp.camera, 90 outroot,120 CONCAT_WS('.', outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 91 121 camProcessedExp.path_base, 92 122 NULL as chip_path_base, … … 111 141 AND (distRun.clean OR chipRun.magicked OR distRun.no_magic) 112 142 AND (camRun.state = 'full' OR (distRun.clean AND camRun.state = 'cleaned')) 113 -- where hook 3%s143 -- where hook 4 %s 114 144 UNION 115 145 SELECT … … 121 151 clean, 122 152 rawExp.camera, 123 outroot,153 CONCAT_WS('.', outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 124 154 fakeProcessedImfile.path_base, 125 155 NULL, … … 142 172 AND distRun.stage = 'fake' 143 173 AND distComponent.dist_id IS NULL 144 -- where hook 4%s174 -- where hook 5 %s 145 175 UNION 146 176 SELECT … … 152 182 clean, 153 183 rawExp.camera, 154 outroot,184 CONCAT_WS('.', outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 155 185 warpSkyfile.path_base, 156 186 NULL as chip_path_base, … … 176 206 AND (distRun.clean OR warpRun.magicked OR distRun.no_magic) 177 207 AND (warpRun.state = 'full' OR (distRun.clean AND warpRun.state = 'cleaned')) 178 -- where hook 5%s208 -- where hook 6 %s 179 209 UNION 180 210 SELECT … … 186 216 clean, 187 217 rawExp.camera, 188 outroot,218 CONCAT_WS('.', outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 189 219 diffSkyfile.path_base, 190 220 NULL as chip_path_base, … … 209 239 AND (distRun.clean OR diffRun.magicked OR distRun.no_magic) 210 240 AND (diffRun.state = 'full' OR (distRun.clean AND diffRun.state = 'cleaned')) 211 -- where hook 6%s241 -- where hook 7 %s 212 242 UNION 213 243 SELECT DISTINCT … … 219 249 clean, 220 250 rawExp.camera, 221 outroot,251 CONCAT_WS('.', outroot, CONVERT(distRun.dist_id, CHAR)) as outdir, 222 252 stackSumSkyfile.path_base, 223 253 NULL as chip_path_base, … … 258 288 AND distComponent.dist_id IS NULL 259 289 AND (stackRun.state = 'full' OR (distRun.clean AND stackRun.state = 'cleaned')) 260 -- where hook 7%s290 -- where hook 8 %s 261 291 ) as Foo
Note:
See TracChangeset
for help on using the changeset viewer.
