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 #674: [CARBONDATA-795]rename table is chan...
Date Mon, 20 Mar 2017 10:14:58 GMT
Github user gvramana commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/674#discussion_r106864706
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/AlterTableCommands.scala
---
    @@ -174,7 +175,7 @@ private[sql] case class AlterTableRenameTable(alterTableRenameModel:
AlterTableR
           CarbonEnv.get.carbonMetastore.removeTableFromMetadata(oldDatabaseName, oldTableName)
           sparkSession.sharedState.externalCatalog.asInstanceOf[HiveExternalCatalog].client
             .runSqlHive(
    -          s"ALTER TABLE $oldDatabaseName.$oldTableName RENAME TO $newTableName")
    +          s"ALTER TABLE $oldDatabaseName.$oldTableName RENAME TO $newDatabaseName.$newTableName")
    --- End diff --
    
    Change this to oldDatabaseName


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