[Swift-commit] r2931 - SwiftApps/pc3

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Thu May 14 11:45:22 CDT 2009


Author: benc
Date: 2009-05-14 11:45:21 -0500 (Thu, 14 May 2009)
New Revision: 2931

Added:
   SwiftApps/pc3/q2.sh
Modified:
   SwiftApps/pc3/pc3.swift
Log:
core query 2

Modified: SwiftApps/pc3/pc3.swift
===================================================================
--- SwiftApps/pc3/pc3.swift	2009-05-14 16:13:49 UTC (rev 2930)
+++ SwiftApps/pc3/pc3.swift	2009-05-14 16:45:21 UTC (rev 2931)
@@ -43,6 +43,7 @@
 }
 
 (boolean output) is_match_csv_file_tables(xmlfile input) {
+  string fn = readData(input);
   output = ps_load_executable_boolean(input, "IsMatchCSVFileTables");
 }
 
@@ -99,6 +100,8 @@
 }
 
 (boolean output) is_match_table_column_ranges(xmlfile db, xmlfile input, external thread) {
+  string dbcontent = readData(db);
+  string inputcontent = readData(input);
   output = ps_load_executable_db_boolean(db, input, "IsMatchTableColumnRanges", thread);
 }
 

Added: SwiftApps/pc3/q2.sh
===================================================================
--- SwiftApps/pc3/q2.sh	                        (rev 0)
+++ SwiftApps/pc3/q2.sh	2009-05-14 16:45:21 UTC (rev 2931)
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# this will get all the process IDs for IsMatchTableColumnRanges calls...
+# select execute_id from invocation_procedure_names where procedure_name='is_match_table_column_ranges';
+
+# need to do two things:
+
+# augment with a success/failure value
+
+#  select * from processes where id like 'tag:benc at ci.uchicago.edu,2008:swiftlogs:execute:pc3-20090429-1456-ssftbvsa:0-5-5-3-11-%';
+# this will get the compound and execute (but not operator) subprocesses
+# of a compound process
+# we can probably ask if there is a sub-process with 'stop' in it...
+# although a more positive measure of success might be better
+# should generalise process containment...
+
+
+# augment with the table name
+# perhaps the workflow needs to bring more of the parameter structure into
+# swiftscript rather than dealing with opaque files
+
+echo " select processes.id, dataset_usage.dataset_id, dataset_usage.param_name, dataset_values.value from processes,invocation_procedure_names,dataset_usage, dataset_values where type='compound' and processes.id = invocation_procedure_names.execute_id and procedure_name='is_match_table_column_ranges' and dataset_usage.process_id = processes.id and dataset_usage.direction='O' and dataset_usage.param_name='inputcontent' and dataset_usage.dataset_id = dataset_values.dataset_id;" | sqlite3 provdb
+


Property changes on: SwiftApps/pc3/q2.sh
___________________________________________________________________
Name: svn:executable
   + *




More information about the Swift-commit mailing list