geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan José Ramos Cassella (Jira) <>
Subject [jira] [Created] (GEODE-7240) Prevent Usage of Aggregates within WHERE clause
Date Tue, 24 Sep 2019 21:08:00 GMT
Juan José Ramos Cassella created GEODE-7240:

             Summary: Prevent Usage of Aggregates within WHERE clause
                 Key: GEODE-7240
             Project: Geode
          Issue Type: Bug
          Components: querying
            Reporter: Juan José Ramos Cassella

Aggregate functions shouldn't be allowed as part of the {{WHERE}} clause.
Currently, instead of rejecting the query, we throw a {{ClassCastException}} while trying
to evaluate the condition:

org.apache.geode.cache.query.TypeMismatchException: Unable to use a relational comparison
operator to compare an instance of class ' org.apache.geode.cache.query.internal.aggregate.XXX
' with an instance of ' java.lang.XXX '
	at org.apache.geode.cache.query.internal.types.TypeUtils$ComparisonStrategy.get(
	at org.apache.geode.cache.query.internal.CompiledComparison.evaluate(
	at org.apache.geode.cache.query.internal.CompiledSelect.evaluate(
	at org.apache.geode.cache.query.internal.CompiledSelect.evaluate(
	at org.apache.geode.cache.query.internal.DefaultQuery.executeUsingContext(
	at org.apache.geode.cache.query.internal.DefaultQuery.execute(
	at org.apache.geode.cache.query.internal.DefaultQuery.execute(

This message was sent by Atlassian Jira

View raw message