Skip to content

Commit

Permalink
Merge pull request #68 from CloudFormations/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
MattPCollins authored Jun 4, 2024
2 parents c86c4e4 + b24dde2 commit 2359e31
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def checkLoadType(loadType: str) -> None:
return

# For incremental loads we require primary keys to be used in the merge criteria.
def checkMergeAndPKConditions(loadType:str, pkList: list[str]) -> None:
def checkMergeAndPKConditions(loadType:str, pkList: list()) -> None:
"""
Checks the combination of load type and primary key values providedprovided to prevent unsupported load types occurring.
Currently supports Full ('F') and Incremental ('I') loads.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "Ingest_LS_Databricks_JobCluster_MIAuth",
"properties": {
"parameters": {
"WorkspaceURL": {
"type": "string"
},
"ClusterVersion": {
"type": "string"
},
"NodeType": {
"type": "string"
},
"PythonVersion": {
"type": "string",
"defaultValue": "Unused"
},
"NumWorkers": {
"type": "string"
},
"SubscriptionId": {
"type": "string"
},
"ResourceName": {
"type": "string"
},
"ResourceGroupName": {
"type": "string"
}
},
"annotations": [
"JobCluster"
],
"type": "AzureDatabricks",
"typeProperties": {
"domain": "@linkedService().WorkspaceURL",
"authentication": "MSI",
"workspaceResourceId": "@concat('/subscriptions/',linkedService().SubscriptionId,'/resourceGroups/',linkedService().ResourceGroupName,'/providers/Microsoft.Databricks/workspaces/',linkedService().ResourceName)",
"newClusterNodeType": "@linkedService().NodeType",
"newClusterNumOfWorker": "@linkedService().NumWorkers",
"newClusterSparkEnvVars": {
"PYSPARK_PYTHON": "/databricks/python3/bin/python3"
},
"newClusterVersion": "@linkedService().ClusterVersion",
"clusterOption": "Autoscaling",
"newClusterInitScripts": []
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Ingest_Merge",
"name": "Ingest_PL_Merge",
"properties": {
"activities": [
{
Expand Down

0 comments on commit 2359e31

Please sign in to comment.