jadami10 opened a new issue, #8998:
URL: https://github.com/apache/pinot/issues/8998
This is a weird one.
This query works fine
```
select currency, sum(amount)
from my table
where id = X
and amount > 0
```
The following query fails
```
select currency, sum(amount)
from my table
where amount > 0
and id = X
```
I get back
```
[
{
"errorCode": 200,
"message":
"QueryExecutionError:\norg.apache.pinot.spi.exception.BadQueryRequestException:
Unsupported function: sum not found\n\tat
org.apache.pinot.core.operator.transform.function.TransformFunctionFactory.get(TransformFunctionFactory.java:296)\n\tat
org.apache.pinot.core.operator.transform.function.TransformFunctionFactory.get(TransformFunctionFactory.java:259)\n\tat
org.apache.pinot.core.operator.filter.ExpressionFilterOperator.<init>(ExpressionFilterOperator.java:59)\n\tat
org.apache.pinot.core.plan.FilterPlanNode.constructPhysicalOperator(FilterPlanNode.java:237)"
},
{
"errorCode": 200,
"message":
"QueryExecutionError:\norg.apache.pinot.spi.exception.BadQueryRequestException:
Unsupported function: sum not found\n\tat
org.apache.pinot.core.operator.transform.function.TransformFunctionFactory.get(TransformFunctionFactory.java:296)\n\tat
org.apache.pinot.core.operator.transform.function.TransformFunctionFactory.get(TransformFunctionFactory.java:259)\n\tat
org.apache.pinot.core.operator.filter.ExpressionFilterOperator.<init>(ExpressionFilterOperator.java:59)\n\tat
org.apache.pinot.core.plan.FilterPlanNode.constructPhysicalOperator(FilterPlanNode.java:237)"
}
]
```
I've tried <, >, =, is null, is not null; but no matter what, if you filter
on amount first, the query fails.
I can't repro with latest master and the meetupRsvp table, so it might
already be fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]