Skip to content

Commit 07f2305

Browse files
authored
Apply suggestions from code review
1 parent e50b175 commit 07f2305

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

articles/stream-analytics/stream-analytics-debug-locally-using-job-diagram.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
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
33
description: This article describes how to debug queries locally using job diagram in Azure Stream Analytics Tools for Visual Studio.
44
author: su-jie
55
ms.author: sujie
@@ -9,31 +9,31 @@ ms.topic: conceptual
99
ms.date: 01/9/2020
1010
---
1111

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
1313

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.
1515

16-
## Debug query step by step using job diagram
16+
## Debug a query using job diagram
1717

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.
1919

2020
> [!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.
2222
2323
### Start local testing
2424

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.
2626

2727
> [!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.
2929
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.
3131

32-
### View intermediate result set
32+
### View the intermediate result set
3333

3434
#### Navigate to script
3535

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.
3737

3838
![Job diagram navigate script](./media/vs-job-diagram/navigate-script.png)
3939

@@ -98,7 +98,7 @@ If you don't need the job diagram anymore, select **Close** on the top right cor
9898

9999
### View job level metrics and stop running
100100

101-
Other job level metrics shows up in the pop up console. Press Ctrl+C in the console if you want to stop the job.
101+
Other job level metrics shows up in the pop up console. Press **Ctrl+C** in the console if you want to stop the job.
102102

103103
![Job diagram stop job](./media/vs-job-diagram/stop-job.png)
104104

articles/stream-analytics/stream-analytics-troubleshoot-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This article describes common issues with developing Stream Analytics queries an
1919
- 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.
2020
- 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).
2121

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.
2323
![Job diagram preview result](./media/vs-job-diagram/preview-result.png)
2424

2525
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

Comments
 (0)