carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gvramana <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #802: [CARBONDATA-926] Changed max columns...
Date Sat, 15 Apr 2017 15:49:13 GMT
Github user gvramana commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/802#discussion_r111667378
  
    --- Diff: integration/spark-common/src/main/scala/org/apache/carbondata/spark/util/CommonUtil.scala
---
    @@ -342,7 +345,23 @@ object CommonUtil {
               + "the same. Input file : " + csvFile)
           }
         }
    -
         csvColumns
       }
    +
    +  def validateMaxColumns(csvHeaders: Array[String], maxColumns: String): Unit = {
    +    if (maxColumns != null) {
    +      try {
    +        val maxColumnsInt = maxColumns.toInt
    +        if( csvHeaders.length > maxColumnsInt) {
    +          sys.error("csv headers should be less than the max columns")
    --- End diff --
    
    also need to print max Value which is considered.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message