[
https://issues.apache.org/jira/browse/CARBONDATA-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15581400#comment-15581400 ]
ASF GitHub Bot commented on CARBONDATA-317:
-------------------------------------------
Github user gvramana commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/237#discussion_r83584249
--- 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 --
"Give a message First line cannot be empty", irrespective of header present or not.
> 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)