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 [email protected] or file a JIRA ticket
with INFRA.
---