Github user gvramana commented on a diff in the pull request: https://github.com/apache/incubator-carbondata/pull/398#discussion_r91021993 --- Diff: integration/spark-common/src/main/scala/org/apache/carbondata/spark/util/GlobalDictionaryUtil.scala --- @@ -836,8 +836,15 @@ object GlobalDictionaryUtil { } } catch { case ex: Exception => - LOGGER.error(ex, "generate global dictionary failed") - throw ex + ex match { + case spx: SparkException => + LOGGER.error(spx, "generate global dictionary failed") + throw new Exception( + "Global dictionary generation failed. Please check the logs.") --- End diff -- We cannot generally handle this SparkException, also we have to avoid "check logs". So handle specific TextParseException and compose required error message, during parsing only.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---