IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2010, 2:20:58 PM (16 years ago)
Author:
watersc1
Message:

Handling for SSdiff stage in the pending and advance steps of distribution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/disttool_toadvance.sql

    r23777 r27012  
    189189        AND distComponent.component IS NOT NULL
    190190        AND distComponent.fault = 0
     191UNION
     192-- SSdiff stage
     193SELECT
     194    distRun.dist_id,
     195    stage,
     196    stage_id,
     197    outroot,
     198    distRun.label,
     199    clean
     200    FROM distRun
     201    JOIN diffSkyfile
     202        ON stage_id = diffSkyfile.diff_id
     203    LEFT JOIN distComponent
     204        ON distRun.dist_id = distComponent.dist_id
     205        AND distComponent.component = diffSkyfile.skycell_id
     206    WHERE
     207        distRun.state = 'new'
     208        AND distRun.fault = 0
     209        AND distRun.stage = 'SSdiff'
     210--        AND diffSkyfile.fault = 0
     211    GROUP BY
     212        distRun.dist_id,
     213        diff_id
     214    HAVING
     215        COUNT(diffSkyfile.skycell_id) = COUNT(distComponent.component)
     216        AND SUM(distComponent.fault) = 0
    191217) as Foo
Note: See TracChangeset for help on using the changeset viewer.