[ 
https://issues.apache.org/jira/browse/QPID-8717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18035842#comment-18035842
 ] 

ASF GitHub Bot commented on QPID-8717:
--------------------------------------

dakirily opened a new pull request, #340:
URL: https://github.com/apache/qpid-broker-j/pull/340

   This PR addresses JIRA 
[QPID-8717](https://issues.apache.org/jira/browse/QPID-8717), fixing 
ClassCastException thrown when using AVG function in broker query engine




> [Broker-J] Broker query engine may produce ClassCastException when using AVG 
> function
> -------------------------------------------------------------------------------------
>
>                 Key: QPID-8717
>                 URL: https://issues.apache.org/jira/browse/QPID-8717
>             Project: Qpid
>          Issue Type: Bug
>          Components: Broker-J
>    Affects Versions: qpid-java-broker-10.0.0
>            Reporter: Daniil Kirilyuk
>            Priority: Minor
>             Fix For: qpid-java-broker-10.0.1
>
>         Attachments: ClassCastException.txt
>
>
> REST API request using AVG aggregate function sometimes returns http 500 
> server error to client and broker.log records ClassCastException.
> {code:java}
> curl -i -X POST -H "Content-Type: application/json" -H "Accept: 
> application/json" -d \
> '{
>   "sql": "SELECT AVG(queueDepthMessages) AS AverageDepth FROM queue"
> }' \
> http://localhost:8080/api/latest/querybroker/broker {code}
> Error stacktrace: [^ClassCastException.txt]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to