Changeset 43014 for branches/eam_branches/ipp-pstamp-20260421/ippTools/share/difftool_definewarpstack.sql
- Timestamp:
- May 11, 2026, 3:09:36 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/ippTools/share/difftool_definewarpstack.sql
r37974 r43014 1 1 -- Get list of warp-stack pairs that can be diffed 2 2 -- and check results against existing diffs 3 -- EAM: the output of this query should be limited to 4 -- only the fields need otherwise we have aggregation errors 3 5 SELECT 4 6 exp_id, 5 7 warp_id, 6 filter,7 warpLabel,8 -- filter, 9 -- warpLabel, 8 10 warpDataGroup, 9 11 Inputs.tess_id, 10 12 Inputs.skycell_id, 11 stack_id, 12 stackLabel, 13 stackDataGroup, 14 diff_id, 15 diffLabel 13 stack_id 14 -- these are NOT needed as an output 15 -- stackLabel, -- only used in the whereClauseString 16 -- stackDataGroup, 17 -- diff_id, 18 -- diffLabel 16 19 FROM 17 20 ( 18 21 SELECT 19 exp_id, 20 warp_id, 21 rawExp.filter, 22 warpRun.label AS warpLabel, 23 warpRun.data_group AS warpDataGroup, 24 warpRun.tess_id, 25 warpSkyfile.skycell_id, 26 MAX(stack_id) AS stack_id, 27 stackRun.label AS stackLabel, 28 stackRun.data_group AS stackDataGroup 22 exp_id, -- KEEP 23 warp_id, -- KEEP 24 rawExp.filter, -- KEEP 25 -- warpRun.label AS warpLabel, -- DROP? 26 warpRun.data_group AS warpDataGroup, -- KEEP 27 warpRun.tess_id, -- KEEP 28 warpSkyfile.skycell_id, -- KEEP 29 MAX(stack_id) AS stack_id -- KEEP 30 -- these two fields are only used by the whereClauseString below 31 -- and do NOT need to be SELECTed 32 -- stackRun.label AS stackLabel, 33 -- stackRun.data_group AS stackDataGroup 29 34 FROM warpRun 30 35 JOIN fakeRun USING(fake_id) … … 46 51 AND stackSumSkyfile.quality = 0 47 52 AND exp_id IS NOT NULL 53 -- replaced by whereClauseString 48 54 -- %s 49 55 GROUP BY exp_id,warp_id,skycell_id … … 62 68 WHERE 63 69 diff_mode = 2 70 -- replaced by diffWhereClause 64 71 -- %s 65 72 ) AS Diffs ON … … 70 77 WHERE 71 78 1 72 -- %s 79 -- replaced by joinWhereClause 80 -- %s 73 81
Note:
See TracChangeset
for help on using the changeset viewer.
