Return two outputs from Azure ML Service in Stream Analytics query

Justin Hare 21 Reputation points
2020-07-27T11:22:27.317+00:00

I have an Azure ML webservice that returns a string as an output. Within the string, there are two values that were returned from a model, such as a prediction and the probability associated with the prediction. Since I need both values as an output, I tried using the following query since I cannot make two calls to the webservice in order to extract both values. My query: ![13878-sa-query.png][1] In the query editor, the query is marked as invalid for having an unexpected end of file. I have verified that the webservice is written correctly to return the proper number of values to account for the windowing, and I am only hung up by the query. Any suggestions to modifying the query would be appreciated. [1]: /api/attachments/13878-sa-query.png?platform=QnA

Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
333 questions
0 comments No comments
{count} votes

Accepted answer
  1. JS Azure 76 Reputation points
    2020-07-28T17:47:17.71+00:00

    Hi, the query in the nested SELECT must have a name.

    E.g. if you as the following at the end of your query, it will compile:
    AS processedScore

    Let me know if you have any other question
    Thanks,
    JS

    0 comments No comments

0 additional answers

Sort by: Most helpful