ajantha-bhat commented on a change in pull request #3919:
URL: https://github.com/apache/carbondata/pull/3919#discussion_r487970151
##########
File path:
integration/spark/src/main/scala/org/apache/spark/sql/execution/command/management/CarbonLoadDataCommand.scala
##########
@@ -191,7 +191,12 @@ case class CarbonLoadDataCommand(databaseNameOp:
Option[String],
if (isUpdateTableStatusRequired) {
CarbonLoaderUtil.updateTableStatusForFailure(carbonLoadModel, uuid)
}
- throw ex
+ val errorMessage = operationContext.getProperty("Error message")
+ if (errorMessage != null) {
+ throw new Exception(errorMessage.toString, ex.getCause)
Review comment:
Instead of Exception, try to use specific class of Exception like
RuntimeException, IOException or something suitable here.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]