druid icon indicating copy to clipboard operation
druid copied to clipboard

Record column name for exceptions while writing frames in RowBasedFrameWriter

Open gargvishesh opened this issue 1 year ago • 0 comments

Current Runtime Exceptions generated while writing frames only include the exception itself without including the name of the column they were encountered in, for e.g.

java.lang.RuntimeException: java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')

Start including the col name for easier debugging.

New Exception: java.lang.RuntimeException: org.apache.druid.frame.write.FrameFieldWriterException: Error [class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')] while writing frame for column [arrayString]

gargvishesh avatar Mar 15 '24 05:03 gargvishesh