You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by ja...@apache.org on 2017/02/21 01:36:14 UTC

[1/2] incubator-carbondata git commit: added vaidation for table name with spaces

Repository: incubator-carbondata
Updated Branches:
  refs/heads/master 716517619 -> 57f22e834


added vaidation for table name with spaces


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

Branch: refs/heads/master
Commit: c4b6e3eeccdcb5015f67f937e05fe947c96296a5
Parents: 7165176
Author: anubhav100 <an...@knoldus.in>
Authored: Sun Jan 29 18:01:44 2017 +0530
Committer: jackylk <ja...@huawei.com>
Committed: Tue Feb 21 09:35:13 2017 +0800

----------------------------------------------------------------------
 .../spark2/src/main/scala/org/apache/spark/sql/CarbonSource.scala | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/c4b6e3ee/integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSource.scala
----------------------------------------------------------------------
diff --git a/integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSource.scala b/integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSource.scala
index b44b066..f92c007 100644
--- a/integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSource.scala
+++ b/integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSource.scala
@@ -112,6 +112,9 @@ class CarbonSource extends CreatableRelationProvider
     if (StringUtils.isBlank(tableName)) {
       throw new MalformedCarbonCommandException("The Specified Table Name is Blank")
     }
+    if (tableName.contains(" ")) {
+      throw new MalformedCarbonCommandException("Table Name Should not have spaces ")
+    }
     val options = new CarbonOption(parameters)
     try {
       CarbonEnv.get.carbonMetastore.lookupRelation(Option(dbName), tableName)(sparkSession)


[2/2] incubator-carbondata git commit: [CARBONDATA-685]added vaidation for table name with spaces IN tableName option using carbon source This closes #580

Posted by ja...@apache.org.
[CARBONDATA-685]added vaidation for table name with spaces IN tableName option using carbon source This closes #580


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

Branch: refs/heads/master
Commit: 57f22e83433da7ee2cc3146b38d2b3324dffca7c
Parents: 7165176 c4b6e3e
Author: jackylk <ja...@huawei.com>
Authored: Tue Feb 21 09:35:58 2017 +0800
Committer: jackylk <ja...@huawei.com>
Committed: Tue Feb 21 09:35:58 2017 +0800

----------------------------------------------------------------------
 .../spark2/src/main/scala/org/apache/spark/sql/CarbonSource.scala | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------