-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: log groupby errors to processing logger #4575
feat: log groupby errors to processing logger #4575
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @rodesai
logger.error( | ||
EngineProcessingLogMessageFactory.recordProcessingError( | ||
String.format( | ||
"Group-by column with index %d resolved to null." | ||
+ " The source row will be excluded from the table.", | ||
index), | ||
row | ||
) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to remove the LOG.error
line below now that we have this? Seems unnecessary to log the error twice.
Other uses of the processing logger don't double log.
logger.error( | ||
EngineProcessingLogMessageFactory.recordProcessingError( | ||
String.format( | ||
"Error calculating group-by column with index %d. " | ||
+ "The source row will be excluded from the table: %s", | ||
index, e.getMessage()), | ||
e, | ||
row | ||
) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same again - remove the LOG.error
below. - and you can remove the LOG
field too.
05cd480
to
df3b95e
Compare
Description
Logs errors in groupby to the processing logger.
Testing done
Added unit tests for the group by mappers to ensure they log correctly.