Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Issues #21 and #29
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasters committed Dec 14, 2018
1 parent 5897aa2 commit 7f78779
Show file tree
Hide file tree
Showing 14 changed files with 903 additions and 138 deletions.
Expand Up @@ -91,13 +91,4 @@ public List<String> getFieldOrder() {
public void setFieldOrder(List<String> fieldOrder) {
this.fieldOrder = fieldOrder;
}

public String findSetFieldInMapping(String stepFieldName) {
for (TransUnitTestFieldMapping fieldMapping : fieldMappings) {
if (fieldMapping.getStepFieldName().equalsIgnoreCase(stepFieldName)) {
return fieldMapping.getDataSetFieldName();
}
}
return null;
}
}
Expand Up @@ -57,6 +57,7 @@
import org.pentaho.di.dataset.DataSet;
import org.pentaho.di.dataset.DataSetField;
import org.pentaho.di.dataset.DataSetGroup;
import org.pentaho.di.dataset.DataSetGroupType;
import org.pentaho.di.dataset.spoon.DataSetHelper;
import org.pentaho.di.dataset.util.DataSetConst;
import org.pentaho.di.i18n.BaseMessages;
Expand Down Expand Up @@ -421,6 +422,11 @@ protected void getMetadataFromTable() {
getInfo(set);
DataSetGroup group = set.getGroup();

if (group.getType()!= DataSetGroupType.Database ) {
return;
}
group.verifySettings();

String schemaTable = group.getDatabaseMeta().getQuotedSchemaTableCombination( group.getSchemaName(), wTableName.getText() );

Database database = null;
Expand Down

0 comments on commit 7f78779

Please sign in to comment.