You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Kai Jiang (JIRA)" <ji...@apache.org> on 2016/12/12 07:47:59 UTC
[jira] [Assigned] (GEODE-224) Geode Spark connector parser is not
processing type casting properly
[ https://issues.apache.org/jira/browse/GEODE-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kai Jiang reassigned GEODE-224:
-------------------------------
Assignee: Kai Jiang
> 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
> Assignee: Kai Jiang
> 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)