Changeset 30118 for branches/czw_branch/20101203/ippTools/share
- Timestamp:
- Dec 20, 2010, 2:30:45 PM (16 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 7 edited
-
. (modified) (1 prop)
-
ippTools (modified) (1 prop)
-
ippTools/share/camtool_find_pendingimfile.sql (modified) (1 prop)
-
ippTools/share/pubtool_definerun.sql (modified) (4 diffs)
-
ippTools/share/pubtool_pending.sql (modified) (3 diffs)
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 diff, 1 prop)
-
ippTools/share/regtool_pendingexp.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/ippTools
- Property svn:mergeinfo deleted
-
branches/czw_branch/20101203/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20101103/ippTools/share/camtool_find_pendingimfile.sql (added) merged: 29906,29918,29920
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/ippTools/share/pubtool_definerun.sql
r28428 r30118 3 3 client_id, 4 4 stage_id, 5 src_label 5 src_label, 6 output_format 6 7 FROM ( 7 8 -- Get diffs to publish … … 9 10 client_id, 10 11 diff_id AS stage_id, 11 diffRun.label AS src_label 12 diffRun.label AS src_label, 13 output_format 12 14 FROM publishClient 13 15 JOIN diffRun … … 28 30 client_id, 29 31 cam_id AS stage_id, 30 camRun.label AS src_label 32 camRun.label AS src_label, 33 output_format 31 34 FROM publishClient 32 35 JOIN camRun … … 43 46 client_id, 44 47 diff_phot_id AS stage_id, 45 diffPhotRun.label AS src_label 48 diffPhotRun.label AS src_label, 49 output_format 46 50 FROM publishClient 47 51 JOIN diffPhotRun -
branches/czw_branch/20101203/ippTools/share/pubtool_pending.sql
r28491 r30118 9 9 publishClient.stage, 10 10 publishClient.workdir, 11 publishClient.output_format, 11 12 diffRun.diff_id AS stage_id, 12 13 rawExp.camera, … … 35 36 publishClient.stage, 36 37 publishClient.workdir, 38 publishClient.output_format, 37 39 camRun.cam_id AS stage_id, 38 40 rawExp.camera, … … 56 58 publishClient.stage, 57 59 publishClient.workdir, 60 publishClient.output_format, 58 61 diffPhotRun.diff_phot_id AS stage_id, 59 62 rawExp.camera, -
branches/czw_branch/20101203/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20101103/ippTools/share/pxadmin_create_tables.sql (added) merged: 29906,29918,29920
r29982 r30118 1645 1645 workdir VARCHAR(255) NOT NULL, -- working directory 1646 1646 comment VARCHAR(255), -- for human memory 1647 PRIMARY KEY(client_id) 1647 name varchar(64) default NULL, -- unique client_id verbose identifier 1648 output_format SMALLINT NOT NULL default 1, -- format output versioning 1649 PRIMARY KEY(client_id), 1650 UNIQUE KEY name (name) 1648 1651 ) ENGINE=innodb DEFAULT CHARSET=latin1; 1649 1652 - Property svn:mergeinfo changed
-
branches/czw_branch/20101203/ippTools/share/regtool_pendingexp.sql
r29982 r30118 1 1 SELECT DISTINCT 2 exp_id, 3 tmp_exp_name, 4 tmp_camera, 5 tmp_telescope, 6 state, 7 workdir, 8 workdir_state, 9 reduction, 10 dvodb, 11 tess_id, 12 end_stage, 13 label, 14 camera, 15 filter, 16 obs_mode, 17 obs_group, 18 epoch, 19 dateobs 20 FROM 21 (SELECT 22 newExp.*, 23 newImfile.tmp_class_id, 24 rawImfile.tmp_class_id as raw_tmp_class_id, 25 rawImfile.camera, 26 rawImfile.filter, 27 rawImfile.dateobs, 28 rawImfile.obs_mode, 29 rawImfile.obs_group 30 FROM newExp 31 JOIN newImfile 32 USING(exp_id) 33 LEFT JOIN rawExp 34 USING(exp_id) 35 LEFT JOIN rawImfile 36 ON newImfile.exp_id = rawImfile.exp_id 37 AND newImfile.tmp_class_id = rawImfile.tmp_class_id 38 WHERE 39 newExp.state = 'run' 40 AND rawExp.exp_id IS NULL 41 AND rawImfile.data_state = 'full' 42 -- where hook %s 43 GROUP BY 44 newExp.exp_id 45 HAVING 46 COUNT(newImfile.tmp_class_id) = COUNT(rawImfile.tmp_class_id) 47 AND SUM(rawImfile.fault) = 0 2 exp_id, 3 tmp_exp_name, 4 tmp_camera, 5 tmp_telescope, 6 state, 7 workdir, 8 workdir_state, 9 reduction, 10 dvodb, 11 tess_id, 12 end_stage, 13 label, 14 camera, 15 filter, 16 obs_mode, 17 obs_group, 18 epoch, 19 dateobs 20 FROM 21 ( 22 select DISTINCT * from 23 ( 24 select newExp.*,count(newImfile.tmp_class_id) AS new_count 25 from newExp 26 LEFT JOIN newImfile USING (exp_id) 27 LEFT JOIN rawExp USING (exp_id) 28 where 29 newExp.state = 'run' AND rawExp.exp_id IS NULL 30 GROUP BY newExp.exp_id 31 ) AS NEWEXPOSURES 32 JOIN 33 ( 34 select DISTINCT newExp.exp_id, 35 rawImfile.camera, 36 rawImfile.filter, 37 rawImfile.dateobs, 38 rawImfile.obs_mode, 39 rawImfile.obs_group, 40 count(rawImfile.tmp_class_id) AS raw_count 41 from newExp 42 LEFT JOIN rawExp USING (exp_id) 43 LEFT JOIN rawImfile USING (exp_id) 44 where 45 newExp.state = 'run' AND rawExp.exp_id IS NULL 46 AND rawImfile.data_state = 'full' 47 -- where hook %s 48 GROUP BY newExp.exp_id 49 HAVING SUM(rawImfile.fault) = 0 50 ) AS RAWEXPOSURES 51 USING (exp_id) 52 WHERE raw_count = new_count 53 ) AS Foo 48 54 -- limit hook %s 49 ) as Foo
Note:
See TracChangeset
for help on using the changeset viewer.
