Skip to content

Commit

Permalink
Added support for nested lookups in ETL unit test framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Apr 13, 2017
1 parent 27052d7 commit 5556679
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/org/ohdsi/rabbitInAHat/ETLTestFrameWorkGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ private static void createLookupFunctions(List<String> r, Database database) {
testDefs.add(" }");
testDefs.add(" if (is.null(" + rFieldName + ")) {");
testDefs.add(" statement <- paste0(statement, \" " + sqlFieldName + " IS NULL\")");
testDefs.add(" } else if (is(" + rFieldName + ", \"subQuery\")){");
testDefs.add(" statement <- paste0(statement, \" " + sqlFieldName + " = (\", as.character(" + rFieldName + "), \")\")");
testDefs.add(" } else {");
testDefs.add(" statement <- paste0(statement, \" " + sqlFieldName + " = '\", " + rFieldName + ",\"'\")");
testDefs.add(" }");
Expand Down
1 change: 0 additions & 1 deletion src/org/ohdsi/whiteRabbit/WhiteRabbitMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public class WhiteRabbitMain implements ActionListener {
private JTextField targetServerField;
private JTextField targetDatabaseField;
private JTextField sourceDelimiterField;
private JTextField targetDelimiterField;
private JComboBox<String> targetCSVFormat;
private JTextField sourceServerField;
private JTextField sourceUserField;
Expand Down

0 comments on commit 5556679

Please sign in to comment.