mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 09:35:40 -05:00
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:
@@ -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/",
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user