gargvishesh commented on code in PR #16130:
URL: https://github.com/apache/druid/pull/16130#discussion_r1551065872


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/exec/ControllerImpl.java:
##########
@@ -2983,6 +2984,20 @@ private MSQErrorReport 
mapQueryColumnNameToOutputColumnName(
                                   .build(),
           task.getQuerySpec().getColumnMappings()
       );
+    } else if (workerErrorReport.getFault() instanceof 
FrameFieldWriterException) {
+      FrameFieldWriterException ffre = (FrameFieldWriterException) 
workerErrorReport.getFault();
+      return MSQErrorReport.fromException(
+          workerErrorReport.getTaskId(),
+          workerErrorReport.getHost(),
+          workerErrorReport.getStageNumber(),
+          FrameFieldWriterException.builder()
+                                   .source(ffre.getSource())
+                                   .rowNumber(ffre.getRowNumber())
+                                   .column(ffre.getColumn())
+                                   .errorMsg(ffre.getErrorMsg())
+                                   .build(),

Review Comment:
   IIUC, the ask is to remove the builder from `FrameFieldWriterException`. But 
we do build it progressively in `ScanQueryFrameProcessor`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to