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


##########
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:
   Let's use the normal constructor since we are using all the parameters in a 
single place. Invalid null byte exception has the builder because it populates 
different information at different places up the call stack.



-- 
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: commits-unsubscr...@druid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to