Github user manishgupta88 commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/81#discussion_r75869120
--- Diff:
integration/spark/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
---
@@ -775,6 +777,13 @@ object CarbonDataRDDFactory extends Logging {
loadStatus = CarbonCommonConstants.STORE_LOADSTATUS_FAILURE
logInfo("DataLoad failure")
logger.error(ex)
+ ex match {
+ case sparkException: SparkException =>
+ if
(sparkException.getCause.isInstanceOf[DataLoadingException]) {
+ executorMessage = sparkException.getCause.getMessage
+ }
+ case _ =>
--- End diff --
@Zhangshunyu ...for underscore case also get the message and assign it to
variable executorMessage because lets say the control comes to case _ then
variable executorMessage will have empty value and message will remain as
"DataLoad failure: " which will be incorrect
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---