Skip to content

Commit

Permalink
Adding pipeline: snowflake_datacopy
Browse files Browse the repository at this point in the history
Adding dataflow: 1_ CALL_CENTER
Adding database: Sales
  • Loading branch information
manjunath15 committed May 30, 2023
1 parent c524676 commit 5117061
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 0 deletions.
22 changes: 22 additions & 0 deletions database/Sales.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Sales",
"properties": {
"Name": "Sales",
"EntityType": "DATABASE",
"Origin": {
"Type": "SPARK"
},
"Properties": {
"IsSyMSCDMDatabase": true
},
"Source": {
"Provider": "ADLS",
"Location": "abfss://lakeshouse@mjlakeshousestroage.dfs.core.windows.net/Sales",
"Properties": {
"FormatType": "parquet",
"LinkedServiceName": "mj-synpase-lakehouse-WorkspaceDefaultStorage"
}
}
},
"type": "DATABASE"
}
53 changes: 53 additions & 0 deletions dataflow/1_ CALL_CENTER.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "1_ CALL_CENTER",
"properties": {
"type": "MappingDataFlow",
"typeProperties": {
"sources": [
{
"dataset": {
"referenceName": "SnowflakeDataSetCallCenter",
"type": "DatasetReference"
},
"name": "snowflakecallcenter",
"description": "\nCALL_CENTER table from snowflake"
}
],
"sinks": [
{
"linkedService": {
"referenceName": "mj-synpase-lakehouse-WorkspaceDefaultStorage",
"type": "LinkedServiceReference"
},
"name": "callcentertable"
}
],
"transformations": [],
"scriptLines": [
"source(allowSchemaDrift: true,",
" validateSchema: false,",
" limit: 100,",
" query: 'select * from SNOWFLAKE_SAMPLE_DATA.TPCDS_SF100TCL.CALL_CENTER',",
" format: 'query') ~> snowflakecallcenter",
"snowflakecallcenter sink(allowSchemaDrift: true,",
" validateSchema: false,",
" format: 'delta',",
" fileSystem: 'lakeshouse',",
" folderPath: 'synapse/workspaces/mj-synpase-lakehouse/Bronze/CallCenter',",
" mergeSchema: false,",
" autoCompact: false,",
" optimizedWrite: false,",
" vacuum: 0,",
" deletable:false,",
" insertable:true,",
" updateable:false,",
" upsertable:false,",
" umask: 0022,",
" preCommands: [],",
" postCommands: [],",
" skipDuplicateMapInputs: true,",
" skipDuplicateMapOutputs: true) ~> callcentertable"
]
}
}
}
32 changes: 32 additions & 0 deletions pipeline/snowflake_datacopy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "snowflake_datacopy",
"properties": {
"activities": [
{
"name": "copy_ CALL_CENTER",
"type": "ExecuteDataFlow",
"dependsOn": [],
"policy": {
"timeout": "0.12:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"dataflow": {
"referenceName": "1_ CALL_CENTER",
"type": "DataFlowReference"
},
"integrationRuntime": {
"referenceName": "AutoResolveIntegrationRuntime",
"type": "IntegrationRuntimeReference"
},
"traceLevel": "Fine"
}
}
],
"annotations": []
}
}

0 comments on commit 5117061

Please sign in to comment.