carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jack...@apache.org
Subject [07/50] [abbrv] incubator-carbondata git commit: fix jira CARBONDATA-975: remove unreasonable code
Date Tue, 02 May 2017 14:12:31 GMT
fix jira CARBONDATA-975: remove unreasonable code

Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/commit/226c4f29
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/tree/226c4f29
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/diff/226c4f29

Branch: refs/heads/12-dev
Commit: 226c4f2958507de4f232c336af9f8c2414ec6c7c
Parents: d3abcd9
Author: mayun <simafengyun1984@163.com>
Authored: Mon Apr 24 14:24:51 2017 +0800
Committer: mayun <simafengyun1984@163.com>
Committed: Mon Apr 24 14:24:51 2017 +0800

----------------------------------------------------------------------
 .../apache/spark/sql/execution/command/carbonTableSchema.scala   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/226c4f29/integration/spark-common/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
----------------------------------------------------------------------
diff --git a/integration/spark-common/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
b/integration/spark-common/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
index 5108df8..e03cbe5 100644
--- a/integration/spark-common/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
+++ b/integration/spark-common/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
@@ -266,7 +266,7 @@ class AlterTableColumnSchemaGenerator(
     columnSchema.setDataType(dataType)
     columnSchema.setColumnName(colName)
     if (alterTableModel.highCardinalityDims.contains(colName)) {
-      encoders.remove(encoders.remove(Encoding.DICTIONARY))
+      encoders.remove(Encoding.DICTIONARY)
     }
     if (dataType == DataType.TIMESTAMP || dataType == DataType.DATE) {
       encoders.add(Encoding.DIRECT_DICTIONARY)
@@ -331,7 +331,7 @@ class TableNewProcessor(cm: TableModel) {
     columnSchema.setColumnName(colName)
     val highCardinalityDims = cm.highcardinalitydims.getOrElse(Seq())
     if (highCardinalityDims.contains(colName)) {
-      encoders.remove(encoders.remove(Encoding.DICTIONARY))
+      encoders.remove(Encoding.DICTIONARY)
     }
     if (dataType == DataType.TIMESTAMP || dataType == DataType.DATE) {
       encoders.add(Encoding.DIRECT_DICTIONARY)


Mime
View raw message