Skip to content

Commit ecd5608

Browse files
wanyang7FredericHeem
authored andcommitted
Change for Synapse pipeline to pass parameters to SparkJobDefinition/Notebook (Azure#17375)
* notebook/sparkjobdef activity parametrization * fix lint * update description
1 parent d37e490 commit ecd5608

File tree

2 files changed

+66
-2
lines changed

2 files changed

+66
-2
lines changed

specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/artifacts.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@
776776
}
777777
},
778778
"referenceName": {
779-
"type": "string",
780-
"description": "Reference notebook name."
779+
"type": "object",
780+
"description": "Reference notebook name. Type: string (or Expression with resultType string)."
781781
}
782782
},
783783
"required": [
@@ -835,6 +835,31 @@
835835
"referenceName"
836836
]
837837
},
838+
"BigDataPoolParametrizationReference": {
839+
"description": "Big data pool reference type.",
840+
"type": "object",
841+
"properties": {
842+
"type": {
843+
"type": "string",
844+
"description": "Big data pool reference type.",
845+
"enum": [
846+
"BigDataPoolReference"
847+
],
848+
"x-ms-enum": {
849+
"name": "BigDataPoolReferenceType",
850+
"modelAsString": true
851+
}
852+
},
853+
"referenceName": {
854+
"type": "object",
855+
"description": "Reference big data pool name. Type: string (or Expression with resultType string)."
856+
}
857+
},
858+
"required": [
859+
"type",
860+
"referenceName"
861+
]
862+
},
838863
"ArtifactRenameRequest": {
839864
"description": "Request body structure for rename artifact.",
840865
"type": "object",

specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7354,6 +7354,10 @@
73547354
"description": "Synapse notebook reference.",
73557355
"$ref": "../artifacts.json#/definitions/SynapseNotebookReference"
73567356
},
7357+
"sparkPool": {
7358+
"description": "The name of the big data pool which will be used to execute the notebook.",
7359+
"$ref": "../artifacts.json#/definitions/BigDataPoolParametrizationReference"
7360+
},
73577361
"parameters": {
73587362
"description": "Notebook parameters.",
73597363
"type": "object",
@@ -7401,6 +7405,41 @@
74017405
"items": {
74027406
"description": "Type: string (or Expression with resultType string)."
74037407
}
7408+
},
7409+
"file": {
7410+
"type": "object",
7411+
"description": "The main file used for the job, which will override the 'file' of the spark job definition you provide. Type: string (or Expression with resultType string)."
7412+
},
7413+
"className": {
7414+
"type": "object",
7415+
"description": "The fully-qualified identifier or the main class that is in the main definition file, which will override the 'className' of the spark job definition you provide. Type: string (or Expression with resultType string)."
7416+
},
7417+
"files": {
7418+
"description": "Additional files used for reference in the main definition file, which will override the 'files' of the spark job definition you provide.",
7419+
"type": "array",
7420+
"items": {
7421+
"description": "Type: string (or Expression with resultType string)."
7422+
}
7423+
},
7424+
"targetBigDataPool": {
7425+
"$ref": "../artifacts.json#/definitions/BigDataPoolParametrizationReference",
7426+
"description": "The name of the big data pool which will be used to execute the spark batch job, which will override the 'targetBigDataPool' of the spark job definition you provide."
7427+
},
7428+
"executorSize": {
7429+
"type": "object",
7430+
"description": "Number of core and memory to be used for executors allocated in the specified Spark pool for the job, which will be used for overriding 'executorCores' and 'executorMemory' of the spark job definition you provide. Type: string (or Expression with resultType string)."
7431+
},
7432+
"conf": {
7433+
"type": "object",
7434+
"description": "Spark configuration properties, which will override the 'conf' of the spark job definition you provide."
7435+
},
7436+
"driverSize": {
7437+
"type": "object",
7438+
"description": "Number of core and memory to be used for driver allocated in the specified Spark pool for the job, which will be used for overriding 'driverCores' and 'driverMemory' of the spark job definition you provide. Type: string (or Expression with resultType string)."
7439+
},
7440+
"numExecutors": {
7441+
"description": "Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide.",
7442+
"type": "integer"
74047443
}
74057444
},
74067445
"required": [

0 commit comments

Comments
 (0)