carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QiangCai <...@git.apache.org>
Subject [GitHub] carbondata pull request #1564: [CARBONDATA-1610][Streaming] Reject alter tab...
Date Sat, 25 Nov 2017 03:17:18 GMT
Github user QiangCai commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1564#discussion_r153036781
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/strategy/DDLStrategy.scala
---
    @@ -156,11 +156,22 @@ class DDLStrategy(sparkSession: SparkSession) extends SparkStrategy
{
           case AlterTableSetPropertiesCommand(tableName, properties, isView)
             if CarbonEnv.getInstance(sparkSession).carbonMetastore
               .tableExists(tableName)(sparkSession) => {
    +        val property = properties.find(_._1.equalsIgnoreCase("streaming"))
    +        if (property.isDefined) {
    +          if (!property.get._2.trim.equalsIgnoreCase("true")) {
    +            throw new MalformedCarbonCommandException(
    +              "Unsupported alter table to disable streaming property")
    --- End diff --
    
    fixed


---

Mime
View raw message