[
https://issues.apache.org/jira/browse/GEODE-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15705015#comment-15705015
]
ASF GitHub Bot commented on GEODE-224:
--------------------------------------
GitHub user vectorijk opened a pull request:
https://github.com/apache/incubator-geode/pull/300
[GEODE-224] Geode Spark connector parser is not processing type casting
properly
This issue is related to wrong regex of query string.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/vectorijk/incubator-geode GEODE-224
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-geode/pull/300.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #300
----
commit 86e1235716267094740c06a7fe3f13e85f303cbc
Author: Kai Jiang <[email protected]>
Date: 2016-11-29T11:21:00Z
GEODE-224
Spark Connector parser is not processing type casting properly
This issue is related to wrong regex of query string.
----
> Geode Spark connector parser is not processing type casting properly
> --------------------------------------------------------------------
>
> Key: GEODE-224
> URL: https://issues.apache.org/jira/browse/GEODE-224
> Project: Geode
> Issue Type: Bug
> Components: extensions
> Reporter: William Markito Oliveira
> Priority: Minor
> Labels: gsoc2016
>
> Using GFSH a user can execute queries casting the data types but that's not
> working using the geode-spark-connector.
> {code}
> scala> sqlContext.gemfireOQL("SELECT (Double)t.ema, (Double)t.future_ema,
> (Double)t.close, t.entryTimestamp FROM /TechIndicators t ");
> java.lang.RuntimeException: No result when parsing failed
> at scala.sys.package$.error(package.scala:27)
> at scala.util.parsing.combinator.Parsers$NoSuccess.get(Parsers.scala:181)
> at scala.util.parsing.combinator.Parsers$NoSuccess.get(Parsers.scala:167)
> at
> io.pivotal.gemfire.spark.connector.internal.oql.QueryRDD.getRegionPathFromQuery(QueryRDD.scala:56)
> at
> io.pivotal.gemfire.spark.connector.internal.oql.QueryRDD.getPartitions(QueryRDD.scala:24)
> at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:219)
> at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:217)
> at scala.Option.getOrElse(Option.scala:120)
> at org.apache.spark.rdd.RDD.partitions(RDD.scala:217)
> at org.apache.spark.rdd.RDD.take(RDD.scala:1156)
> at org.apache.spark.rdd.RDD.first(RDD.scala:1189)
> at
> io.pivotal.gemfire.spark.connector.internal.oql.SchemaBuilder.toSparkSchema(SchemaBuilder.scala:30)
> at
> io.pivotal.gemfire.spark.connector.internal.oql.OQLRelation.schema(RDDConverter.scala:13)
> at
> org.apache.spark.sql.sources.LogicalRelation.<init>(LogicalRelation.scala:30)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)