[
https://issues.apache.org/jira/browse/CARBONDATA-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15579765#comment-15579765 ]
ASF GitHub Bot commented on CARBONDATA-317:
-------------------------------------------
Github user kumarvishal09 commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/237#discussion_r83549178
--- Diff: integration/spark/src/main/scala/org/apache/carbondata/spark/csv/CarbonCsvRelation.scala ---
@@ -148,6 +150,10 @@ case class CarbonCsvRelation protected[spark] (
.withSkipHeaderRecord(false)
CSVParser.parse(firstLine, csvFormat).getRecords.get(0).asScala.toArray
}
+ if(null == firstRow) {
+ throw new DataLoadingException("Please check your input path and make sure " +
--- End diff --
May be csv file does not have header and user is passing the header from load command in that case is this a valid message??
> CSV having only space char is throwing NullPointerException
> -----------------------------------------------------------
>
> Key: CARBONDATA-317
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-317> Project: CarbonData
> Issue Type: Bug
> Reporter: Mohammad Shahid Khan
> Assignee: Mohammad Shahid Khan
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)