Fix to use table name from process input field

This commit is contained in:
2022-07-25 08:23:07 -05:00
parent 80a6748e50
commit a5356e694d

View File

@ -49,7 +49,7 @@ public class BasicETLExtractFunction implements BackendStep
public void run(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) throws QException public void run(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) throws QException
{ {
String tableName = runBackendStepInput.getValueString(BasicETLProcess.FIELD_SOURCE_TABLE); String tableName = runBackendStepInput.getValueString(BasicETLProcess.FIELD_SOURCE_TABLE);
LOG.info("Start query on table: " + runBackendStepInput.getTableName()); LOG.info("Start query on table: " + tableName);
QueryInput queryInput = new QueryInput(runBackendStepInput.getInstance()); QueryInput queryInput = new QueryInput(runBackendStepInput.getInstance());
queryInput.setSession(runBackendStepInput.getSession()); queryInput.setSession(runBackendStepInput.getSession());
@ -68,6 +68,6 @@ public class BasicETLExtractFunction implements BackendStep
QueryOutput queryOutput = queryAction.execute(queryInput); QueryOutput queryOutput = queryAction.execute(queryInput);
runBackendStepOutput.setRecords(queryOutput.getRecords()); runBackendStepOutput.setRecords(queryOutput.getRecords());
LOG.info("Query on table " + runBackendStepInput.getTableName() + " produced " + queryOutput.getRecords().size() + " records."); LOG.info("Query on table " + tableName + " produced " + queryOutput.getRecords().size() + " records.");
} }
} }