[ https://issues.apache.org/jira/browse/GEODE-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anthony Baker resolved GEODE-224. --------------------------------- Resolution: Fixed > 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 > Fix For: 1.1.0 > > > 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)