geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Baker (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GEODE-2579) ClassCastException cannot cast CompiledIn to CompiledJunction when querying with a junction containing an in clause
Date Sat, 17 Jun 2017 18:04:17 GMT

     [ https://issues.apache.org/jira/browse/GEODE-2579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Anthony Baker closed GEODE-2579.
--------------------------------

> ClassCastException cannot cast CompiledIn to CompiledJunction when querying with a junction
containing an in clause
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-2579
>                 URL: https://issues.apache.org/jira/browse/GEODE-2579
>             Project: Geode
>          Issue Type: Bug
>          Components: querying
>    Affects Versions: 1.0.0-incubating
>            Reporter: Jason Huynh
>            Assignee: Jason Huynh
>             Fix For: 1.2.0
>
>
> A query that causes a junction to form with a compiled in clause may throw the following
exception: 
> java.lang.ClassCastException: org.apache.geode.cache.query.internal.CompiledIn cannot
be cast to org.apache.geode.cache.query.internal.CompiledJunction
> 	at org.apache.geode.cache.query.internal.AbstractGroupOrRangeJunction.<init>(AbstractGroupOrRangeJunction.java:78)
> 	at org.apache.geode.cache.query.internal.GroupJunction.<init>(GroupJunction.java:55)
> 	at org.apache.geode.cache.query.internal.GroupJunction.recreateFromOld(GroupJunction.java:61)
> 	at org.apache.geode.cache.query.internal.CompositeGroupJunction.evaluateAndJunction(CompositeGroupJunction.java:348)
> 	at org.apache.geode.cache.query.internal.CompositeGroupJunction.filterEvaluate(CompositeGroupJunction.java:93)
> 	at org.apache.geode.cache.query.internal.CompiledJunction.filterEvaluate(CompiledJunction.java:187)
> 	at org.apache.geode.cache.query.internal.CompiledSelect.evaluate(CompiledSelect.java:545)
> 	at org.apache.geode.cache.query.internal.CompiledSelect.evaluate(CompiledSelect.java:57)
> 	at org.apache.geode.cache.query.internal.DefaultQuery.executeUsingContext(DefaultQuery.java:579)
> 	at org.apache.geode.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:391)
> 	at org.apache.geode.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:323)
> 	at org.apache.geode.cache.query.QueryJUnitTest.creatingACompiledJunctionWithACompiledInClauseDoesNotThrowException(QueryJUnitTest.java:334)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:483)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> 	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
> 	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
> 	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:483)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
> A sample query would be :
> select regionB.userId,regionA.professionCode,regionB.postCode,regionB.userName from /regionA
regionA,/regionB regionB where regionA.userId = regionB.userId and regionA.professionCode
in Set('1','2','3') and regionB.postCode = '1' and regionB.userId='1'"



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message