You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/stream-analytics/stream-analytics-debug-locally-using-job-diagram.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Debug Azure Stream Analytics query locally using job diagram in Visual Studio
2
+
title: Debug Azure Stream Analytics queries locally using job diagram in Visual Studio
3
3
description: This article describes how to debug queries locally using job diagram in Azure Stream Analytics Tools for Visual Studio.
4
4
author: su-jie
5
5
ms.author: sujie
@@ -9,31 +9,31 @@ ms.topic: conceptual
9
9
ms.date: 01/9/2020
10
10
---
11
11
12
-
# Debug Azure Stream Analytics query locally using job diagram in Visual Studio
12
+
# Debug Azure Stream Analytics queries locally using job diagram in Visual Studio
13
13
14
-
Job outputing no result or unexpected result are common trouble shooting scenarios for streaming queries. You can use the job diagram while testing your query locally in Visual Studio to examine the intermediate result set and metrics for each step, to more quickly isolate the source of a problem when you trouble shoot issues.
14
+
Jobs that output no result or unexpected results are common troubleshooting scenarios for streaming queries. You can use the job diagram while testing your query locally in Visual Studio to examine the intermediate result set and metrics for each step. Job diagrams can help you quickly isolate the source of a problem when you troubleshoot issues.
15
15
16
-
## Debug query step by step using job diagram
16
+
## Debug a query using job diagram
17
17
18
-
An Azure Stream Analytics script represents the logic of transforming input data to output data. The job diagram is to show how data flows from input sources (Event Hub, IoT Hub, etc) through multiple query steps and finally output to sinks. Each query step is mapped to a temporary result set defined in the script using WITH statement. You can view the data as well as metrics in each query step in each intermediate result set to find the source of the issue.
18
+
An Azure Stream Analytics script is used to transform input data to output data. The job diagram shows how data flows from input sources (Event Hub, IoT Hub, etc) through multiple query steps and finally output to sinks. Each query step is mapped to a temporary result set defined in the script using a `WITH` statement. You can view the data as well as metrics of each query step in each intermediate result set to find the source of an issue.
19
19
20
20
> [!NOTE]
21
-
> This job diagram only shows the data and metrics for local testing in a single node. It should not be used for performance tuning and trouble shooting.
21
+
> This job diagram only shows the data and metrics for local testing in a single node. It should not be used for performance tuning and troubleshooting.
22
22
23
23
### Start local testing
24
24
25
-
Use this [Quickstart](stream-analytics-quick-create-vs.md) to learn how to create a Stream Analytics job using Visual Studio or [export an existing job to a local project](stream-analytics-vs-tools.md#export-jobs-to-a-project). If you want to test the query with local input data, follow this [instruction](stream-analytics-live-data-local-testing.md). Or if you want to test with live input, you can move to the next step.
25
+
Use this [Quickstart](stream-analytics-quick-create-vs.md) to learn how to create a Stream Analytics job using Visual Studio or [export an existing job to a local project](stream-analytics-vs-tools.md#export-jobs-to-a-project). If you want to test the query with local input data, follow these [instructions](stream-analytics-live-data-local-testing.md). If you want to test with live input, move to the next step.
26
26
27
27
> [!NOTE]
28
-
> If you export a job to local project and want to test against live input stream, you need to specify the credentials for all inputs again.
28
+
> If you export a job to local project and want to test against a live input stream, you need to specify the credentials for all inputs again.
29
29
30
-
Choose the input and output source from the script editor and then click **Run locally**. Then the job diagram shows up on the right side.
30
+
Choose the input and output source from the script editor and select **Run locally**. The job diagram appears on the right side.
31
31
32
-
### View intermediate result set
32
+
### View the intermediate result set
33
33
34
34
#### Navigate to script
35
35
36
-
Select the query step and it brings you to the corresponding script in the editor on the left.
36
+
1.Select the query step to navigate to the script. You are automatically directed to the corresponding script in the editor on the left.
Copy file name to clipboardExpand all lines: articles/stream-analytics/stream-analytics-troubleshoot-query.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This article describes common issues with developing Stream Analytics queries an
19
19
- On Azure portal, on the **Query** tab, select **Test**. Use the downloaded sample data to [test the query](stream-analytics-test-query.md). Examine any errors and attempt to correct them.
20
20
- You can also [test your query locally](stream-analytics-live-data-local-testing.md) using Azure Stream Analytics tools for Visual Studio or [Visual Studio Code](visual-studio-code-local-run-live-input.md).
21
21
22
-
2.[Debug query step by step locally using job diagram](stream-analytics-debug-locally-using-job-diagram.md) in Azure Stream Analytics tools for Visual Studio. The job diagram is to show how data flows from input sources (Event Hub, IoT Hub, etc) through multiple query steps and finally output to sinks. Each query step is mapped to a temporary result set defined in the script using WITH statement. You can view the data as well as metrics in each query step in each intermediate result set to find the source of the issue.
22
+
2.[Debug queries step by step locally using job diagram](stream-analytics-debug-locally-using-job-diagram.md) in Azure Stream Analytics tools for Visual Studio. The job diagram is to show how data flows from input sources (Event Hub, IoT Hub, etc) through multiple query steps and finally output to sinks. Each query step is mapped to a temporary result set defined in the script using WITH statement. You can view the data as well as metrics in each query step in each intermediate result set to find the source of the issue.
3. If you use [**Timestamp By**](https://docs.microsoft.com/stream-analytics-query/timestamp-by-azure-stream-analytics), verify that the events have timestamps greater than the [job start time](stream-analytics-out-of-order-and-late-events.md).
0 commit comments