carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QiangCai <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #849: [CARBONDATA-992] Fix error of Exampl...
Date Mon, 01 May 2017 13:32:54 GMT
Github user QiangCai commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/849#discussion_r114125190
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/CarbonDatasourceHadoopRelation.scala
---
    @@ -75,4 +75,16 @@ case class CarbonDatasourceHadoopRelation(
         ", " + "Table name :" + carbonTable.getFactTableName + ", Schema :" + tableSchema
+ " ]"
       }
     
    +  override def insert(data: DataFrame, overwrite: Boolean): Unit = {
    +    if (carbonRelation.output.size > CarbonCommonConstants.DEFAULT_MAX_NUMBER_OF_COLUMNS)
{
    +      sys.error("Maximum supported column by carbon is: " +
    +          CarbonCommonConstants.DEFAULT_MAX_NUMBER_OF_COLUMNS)
    +    }
    +    if(data.logicalPlan.output.size >= carbonRelation.output.size) {
    --- End diff --
    
    for different schema, need convert column datatype.


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