Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for nested JSON objects in arrays #15368

Closed
alparslanavci opened this issue Jul 24, 2019 · 1 comment

Comments

@alparslanavci
Copy link

commented Jul 24, 2019

Please see the test case in the following commit: alparslanavci@157b722

It throws the following exception:

java.lang.ClassCastException: com.hazelcast.internal.json.NonTerminalJsonValue cannot be cast to java.lang.Comparable

    at com.hazelcast.aggregation.impl.MaxAggregator.accumulateExtracted(MaxAggregator.java:27)
    at com.hazelcast.aggregation.impl.AbstractAggregator.accumulate(AbstractAggregator.java:75)
    at com.hazelcast.map.impl.query.AggregationResult.add(AggregationResult.java:85)
    at com.hazelcast.map.impl.query.PartitionScanRunner.run(PartitionScanRunner.java:103)
    at com.hazelcast.map.impl.query.CallerRunsPartitionScanExecutor.execute(CallerRunsPartitionScanExecutor.java:42)
    at com.hazelcast.map.impl.query.QueryRunner.runPartitionScanQueryOnGivenOwnedPartition(QueryRunner.java:206)
    at com.hazelcast.map.impl.query.QueryPartitionOperation.run(QueryPartitionOperation.java:46)
    at com.hazelcast.spi.Operation.call(Operation.java:170)
    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.call(OperationRunnerImpl.java:210)
    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:199)
    at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:147)
    at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:125)
    at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run(OperationThread.java:110)
    at ------ submitted from ------.(Unknown Source)
    at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve(InvocationFuture.java:126)
    at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException(InvocationFuture.java:79)
    at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:155)
    at com.hazelcast.map.impl.query.QueryEngineImpl.addResultsOfPredicate(QueryEngineImpl.java:199)
    at com.hazelcast.map.impl.query.QueryEngineImpl.doRunOnPartitionThreads(QueryEngineImpl.java:185)
    at com.hazelcast.map.impl.query.QueryEngineImpl.runOnAllPartitions(QueryEngineImpl.java:132)
    at com.hazelcast.map.impl.query.QueryEngineImpl.execute(QueryEngineImpl.java:90)
    at com.hazelcast.map.impl.proxy.MapProxySupport.executeQueryInternal(MapProxySupport.java:1317)
    at com.hazelcast.map.impl.proxy.MapProxyImpl.aggregate(MapProxyImpl.java:856)
    at com.hazelcast.map.impl.proxy.MapProxyImpl.aggregate(MapProxyImpl.java:844)
    at com.hazelcast.json.MapAggregationJsonTest.testArrayWithNestedField(MapAggregationJsonTest.java:122)
    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:498)
    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 com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:106)
    at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:98)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:748)
@ahmetmircik

This comment has been minimized.

Copy link
Member

commented Sep 23, 2019

fixed by #15430

@ahmetmircik ahmetmircik self-assigned this Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.