carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [50/56] [abbrv] incubator-carbondata git commit: Fixing issues after merge
Date Thu, 23 Jun 2016 14:16:38 GMT
Fixing issues after merge


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

Branch: refs/heads/master
Commit: a76ca0f2a23dca68f9fe585aef2b81127ccfecbb
Parents: 9d89d69
Author: ravipesala <ravi.pesala@gmail.com>
Authored: Tue Jun 21 00:16:30 2016 +0530
Committer: ravipesala <ravi.pesala@gmail.com>
Committed: Tue Jun 21 00:16:30 2016 +0530

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/sql/CarbonSqlParser.scala | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/a76ca0f2/integration/spark/src/main/scala/org/apache/spark/sql/CarbonSqlParser.scala
----------------------------------------------------------------------
diff --git a/integration/spark/src/main/scala/org/apache/spark/sql/CarbonSqlParser.scala b/integration/spark/src/main/scala/org/apache/spark/sql/CarbonSqlParser.scala
index 40f63c5..4209c5a 100644
--- a/integration/spark/src/main/scala/org/apache/spark/sql/CarbonSqlParser.scala
+++ b/integration/spark/src/main/scala/org/apache/spark/sql/CarbonSqlParser.scala
@@ -1325,9 +1325,10 @@ class CarbonSqlParser()
     }
 
   protected lazy val segmentId: Parser[String] =
-    ( numericLit ^^ { u => u } |
-      elem("decimal", _.isInstanceOf[lexical.FloatLit]) ^^ (_.chars)
-      )
+    numericLit ^^ { u => u } |
+      elem("decimal", p => {
+        p.getClass.getSimpleName.equals("FloatLit") ||
+        p.getClass.getSimpleName.equals("DecimalLit") } ) ^^ (_.chars)
 
   protected lazy val deleteLoadsByID: Parser[LogicalPlan] =
     DELETE ~> (LOAD|SEGMENT) ~> repsep(segmentId, ",") ~ (FROM ~> (CUBE | TABLE)
~>


Mime
View raw message