Skip to content

Commit 55b0c6d

Browse files
committed
#AI Commit#add log
1 parent f18c6d5 commit 55b0c6d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

  • dss-orchestrator/orchestrators/dss-workflow/dss-linkis-node-execution/src/main/java/com/webank/wedatasphere/dss/linkis/node/execution/execution/impl

dss-orchestrator/orchestrators/dss-workflow/dss-linkis-node-execution/src/main/java/com/webank/wedatasphere/dss/linkis/node/execution/execution/impl/LinkisNodeExecutionImpl.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ public Map<String, String> getResultVariables(Job job, int maxSize) {
368368
LOGGER.warn("Branch variable extraction skipped because result rows are empty.");
369369
return variables;
370370
}
371+
LOGGER.info("Branch variable extraction rows size: {}", rows.size());
372+
LOGGER.info("Branch variable extraction rows preview: {}", previewRows(rows));
371373
Object firstRow = rows.get(0);
372374
if (firstRow instanceof Map) {
373375
extractVariablesFromMapRows(rows, variables);
@@ -398,6 +400,13 @@ private void extractVariablesFromArrayRows(ArrayList rows, Map<String, String> v
398400
return;
399401
}
400402
}
403+
if (rows.size() == 1 && rows.get(0) instanceof ArrayList) {
404+
ArrayList row = (ArrayList) rows.get(0);
405+
if (row.size() == 1) {
406+
LOGGER.warn("Branch variable extraction saw a single-row single-column result: {}. Column name may not be present in fileContent.", row);
407+
}
408+
}
409+
401410
for (Object rowObj : rows) {
402411
if (!(rowObj instanceof ArrayList)) {
403412
continue;
@@ -429,6 +438,11 @@ private void extractVariablesFromMapRows(ArrayList rows, Map<String, String> var
429438
}
430439
}
431440

441+
private String previewRows(ArrayList rows) {
442+
int previewSize = Math.min(rows.size(), 3);
443+
return rows.subList(0, previewSize).toString();
444+
}
445+
432446
private String normalizeCellValue(Object value) {
433447
return value == null ? null : value.toString();
434448
}

0 commit comments

Comments
 (0)