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.
---
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.
---