carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jack...@apache.org
Subject [13/49] incubator-carbondata git commit: create database DBNAME , here DBNAME should be case insensitive.
Date Fri, 07 Apr 2017 09:55:16 GMT
create database DBNAME , here DBNAME should be case insensitive.

while creating the folder convert to lower case and create.


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

Branch: refs/heads/12-dev
Commit: 0f67833121452c98e57ce9e263fd91bf1cb07557
Parents: 975a5f7
Author: ravikiran <ravikiran.sn042@gmail.com>
Authored: Thu Apr 6 11:06:08 2017 +0530
Committer: ravipesala <ravi.pesala@gmail.com>
Committed: Thu Apr 6 14:06:23 2017 +0530

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/sql/hive/CarbonMetastore.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/0f678331/integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonMetastore.scala
----------------------------------------------------------------------
diff --git a/integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonMetastore.scala
b/integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonMetastore.scala
index 3645f95..39d8798 100644
--- a/integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonMetastore.scala
+++ b/integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonMetastore.scala
@@ -657,7 +657,7 @@ class CarbonMetastore(conf: RuntimeConfig, val storePath: String) {
   }
 
   def createDatabaseDirectory(dbName: String) {
-    val databasePath = storePath + File.separator + dbName
+    val databasePath = storePath + File.separator + dbName.toLowerCase
     val fileType = FileFactory.getFileType(databasePath)
     FileFactory.mkdirs(databasePath, fileType)
   }


Mime
View raw message