Changeset 18760
- Timestamp:
- 02/18/17 13:46:29 (8 years ago)
- Location:
- trunk/DataCheck
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Setup/steps_fact_isdc.rc
r17062 r18760 47 47 Callisto.MainTable: Callisto 48 48 Callisto.Primaries: fNight, fSequenceID 49 Callisto.Needs: RawFileAvailISDC SequenceFileAvailISDC 50 Callisto.SpecialJoin: LEFT JOIN RunInfo USING(fNight, fSequenceID) 49 #Callisto.Needs: RawFileAvailISDC SequenceFileAvailISDC 50 Callisto.Needs: SequenceFileAvailISDC 51 #Callisto.SpecialJoin: LEFT JOIN RunInfo USING(fNight, fSequenceID) LEFT JOIN SequenceInfo USING(fNight, fSequenceID) 52 Callisto.SpecialJoin: LEFT JOIN SequenceInfo USING(fNight, fSequenceID) 53 Callisto.SpecialWhere: AND fNumRuns=fNumRawfilesAvailISDC 51 54 52 55 Star.MainTable: Star 53 56 Star.Primaries: fNight, fSequenceID 54 57 Star.Needs: RawFileAvailISDC Callisto DriveFileAvailISDC RatesFileAvailISDC SequenceFileAvailISDC 55 Star.SpecialJoin: LEFT JOIN RunInfo USING(fNight, fSequenceID) 58 Star.SpecialJoin: LEFT JOIN RunInfo USING(fNight, fSequenceID) LEFT JOIN SequenceInfo USING(fNight, fSequenceID) 56 59 57 60 #Merpp.MainTable: Merpp -
trunk/DataCheck/Sourcefile.sh
r18707 r18760 266 266 query=$query" AND fProductionHostKEY=$2 " 267 267 fi 268 if ! echo $query | grep UPDATE >/dev/null 2>&1 269 then 270 query=$query" GROUP BY "${prims[@]} 271 fi 268 query=$query`getfromsetup $step "SpecialWhere"` 272 269 # add condition for needs, i.e. that step is done 273 270 for (( k=0 ; k < ${#needs[@]} ; k++ )) 274 271 do 275 if [ $k -eq 0 ]276 then277 query=$query" HAVING "278 else272 # if [ $k -eq 0 ] 273 # then 274 # query=$query" HAVING " 275 # else 279 276 query=$query" AND " 280 fi281 query=$query" COUNT(*)=COUNT(IF("277 # fi 278 # query=$query" COUNT(*)=COUNT(IF(" 282 279 query=$query" NOT ISNULL("${needs[$k]}"Status.fStartTime) " 283 280 query=$query" AND NOT ISNULL("${needs[$k]}"Status.fStopTime) " 284 281 query=$query" AND NOT ISNULL("${needs[$k]}"Status.fAvailable) " 285 282 query=$query" AND ISNULL("${needs[$k]}"Status.fReturnCode) " 286 query=$query" , 1, NULL)) "283 # query=$query" , 1, NULL)) " 287 284 done 285 # if ! echo $query | grep UPDATE >/dev/null 2>&1 286 # then 287 # query=$query" GROUP BY "${prims[@]} 288 # fi 288 289 } 289 290
Note:
See TracChangeset
for help on using the changeset viewer.