Skip to content

Commit

Permalink
0005295: Fixed table group bugs and ran spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Jun 22, 2022
1 parent 3d58fc2 commit e51705d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -63,6 +63,8 @@ public class SelectFromSymDataSource extends SelectFromSource {
protected OutgoingBatch outgoingBatch;
protected TriggerHistory lastTriggerHistory;
protected String lastRouterId;
protected Table lastSourceTable;
protected Table lastTargetTable;
protected boolean requiresLobSelectedFromSource;
protected ISqlReadCursor<Data> cursor;
protected SelectFromTableSource reloadSource;
Expand Down Expand Up @@ -137,7 +139,8 @@ public CsvData next() {
Trigger trigger = triggerRouter.getTrigger();
boolean isFileParserRouter = triggerHistory.getTriggerId().equals(AbstractFileParsingRouter.TRIGGER_ID_FILE_PARSER);
if (lastTriggerHistory == null || lastTriggerHistory.getTriggerHistoryId() != triggerHistory.getTriggerHistoryId() ||
lastRouterId == null || !lastRouterId.equals(routerId)) {
lastRouterId == null || !lastRouterId.equals(routerId) || lastSourceTable == null ||
!lastSourceTable.equals(sourceTable) || lastTargetTable == null || !lastTargetTable.equals(targetTable)) {
sourceTable = columnsAccordingToTriggerHistory.lookup(routerId, triggerHistory, false, !isFileParserRouter);
targetTable = columnsAccordingToTriggerHistory.lookup(routerId, triggerHistory, true, false);
if (trigger != null && trigger.isUseStreamLobs() || (data.getRowData() != null && hasLobsThatNeedExtract(sourceTable, data))) {
Expand Down Expand Up @@ -171,6 +174,8 @@ public CsvData next() {
if (data != null) {
lastTriggerHistory = data.getTriggerHistory();
lastRouterId = routerId;
lastSourceTable = sourceTable;
lastTargetTable = targetTable;
}
} else {
closeCursor();
Expand Down
Expand Up @@ -200,7 +200,7 @@ public Map<String, String> readRequestProperties(InputStream is) throws IOExcept
}

private static BatchAck getBatchInfo(Map<String, ? extends Object> parameters, long batchId) {
BatchAck batchInfo = new BatchAck(batchId);
BatchAck batchInfo = new BatchAck(batchId);
String nodeId = getParam(parameters, WebConstants.ACK_NODE_ID + batchId);
if (StringUtils.isBlank(nodeId)) {
nodeId = getParam(parameters, WebConstants.NODE_ID);
Expand Down

0 comments on commit e51705d

Please sign in to comment.