Disabling validation, changing template for Streaming Jobs (#13253)

* Disable streaming job validation by hiding menu item

* Adding comment to and genercizing column names in external streaming job script
This commit is contained in:
Benjin Dubishar
2020-11-05 11:42:26 -08:00
committed by GitHub
parent 5174f3b2f6
commit 9225d6d6aa
2 changed files with 7 additions and 9 deletions

View File

@@ -351,11 +351,6 @@
"when": "view =~ /^(sqlDatabaseProjectsView|dataworkspace.views.main)$/ && viewItem == databaseProject.itemType.referencesRoot",
"group": "4_dbProjects_addDatabaseReference"
},
{
"command": "sqlDatabaseProjects.validateExternalStreamingJob",
"when": "view =~ /^(sqlDatabaseProjectsView|dataworkspace.views.main)$/ && viewItem == databaseProject.itemType.file.externalStreamingJob",
"group": "5_dbProjects_streamingJob"
},
{
"command": "sqlDatabaseProjects.exclude",
"when": "view =~ /^(sqlDatabaseProjectsView|dataworkspace.views.main)$/ && viewItem == databaseProject.itemType.folder || viewItem =~ /^databaseProject.itemType.file/",

View File

@@ -1,7 +1,10 @@
-- External Streaming Jobs have dependencies on External Streams.
-- You will need to separately create External Streams in order to
-- successfully deploy this script. For more information, see:
-- https://docs.microsoft.com/en-us/azure/azure-sql-edge/create-stream-analytics-job
EXEC sys.sp_create_streaming_job @NAME = '@@OBJECT_NAME@@', @STATEMENT = 'INSERT INTO SqlOutputStream SELECT
timeCreated,
machine.temperature as machine_temperature,
machine.pressure as machine_pressure,
ambient.temperature as ambient_temperature,
ambient.humidity as ambient_humidity
streamColumn1 as column1,
streamColumn2 as column2
FROM EdgeHubInputStream'