Updating pipeline: 04 - Upload - From Metadata
This commit is contained in:
parent
ce14b714ef
commit
63cbbcd637
@ -53,7 +53,21 @@
|
||||
},
|
||||
"activities": [
|
||||
{
|
||||
"name": "Upload File",
|
||||
"name": "Copy By File Type",
|
||||
"type": "Switch",
|
||||
"dependsOn": [],
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"on": {
|
||||
"value": "@substring(item().FileName,add(indexof(item().FileName,'.'),1),sub(length(item().FileName),add(indexof(item().FileName,'.'),1)))",
|
||||
"type": "Expression"
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"value": "csv",
|
||||
"activities": [
|
||||
{
|
||||
"name": "CSV Copy",
|
||||
"type": "Copy",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
@ -67,43 +81,10 @@
|
||||
"typeProperties": {
|
||||
"source": {
|
||||
"type": "DelimitedTextSource",
|
||||
"additionalColumns": [
|
||||
{
|
||||
"name": "FilePath",
|
||||
"value": "$$FILEPATH"
|
||||
},
|
||||
{
|
||||
"name": "DataFactoryName",
|
||||
"value": {
|
||||
"value": "@pipeline().DataFactory",
|
||||
"type": "Expression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "PipelineName",
|
||||
"value": {
|
||||
"value": "@pipeline().Pipeline",
|
||||
"type": "Expression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "UploadDateTime",
|
||||
"value": {
|
||||
"value": "@utcnow()",
|
||||
"type": "Expression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "RunId",
|
||||
"value": {
|
||||
"value": "@pipeline().RunId",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"storeSettings": {
|
||||
"type": "FileServerReadSettings",
|
||||
"recursive": true
|
||||
"recursive": true,
|
||||
"enablePartitionDiscovery": false
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "DelimitedTextReadSettings"
|
||||
@ -162,18 +143,76 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"defaultActivities": [
|
||||
{
|
||||
"name": "Switch1",
|
||||
"type": "Switch",
|
||||
"name": "Binary Copy",
|
||||
"type": "Copy",
|
||||
"dependsOn": [],
|
||||
"policy": {
|
||||
"timeout": "7.00:00:00",
|
||||
"retry": 0,
|
||||
"retryIntervalInSeconds": 30,
|
||||
"secureOutput": false,
|
||||
"secureInput": false
|
||||
},
|
||||
"userProperties": [],
|
||||
"typeProperties": {
|
||||
"on": {
|
||||
"value": "@substring(item().FileName,add(indexof(item().FileName,'.'),1),sub(length(item().FileName),add(indexof(item().FileName,'.'),1)))",
|
||||
"source": {
|
||||
"type": "BinarySource",
|
||||
"storeSettings": {
|
||||
"type": "AzureBlobFSReadSettings",
|
||||
"recursive": true
|
||||
},
|
||||
"formatSettings": {
|
||||
"type": "BinaryReadSettings"
|
||||
}
|
||||
},
|
||||
"sink": {
|
||||
"type": "BinarySink",
|
||||
"storeSettings": {
|
||||
"type": "AzureBlobFSWriteSettings"
|
||||
}
|
||||
},
|
||||
"enableStaging": false
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"referenceName": "LakeFilesBinary",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": {
|
||||
"value": "@item().SourceDirectory",
|
||||
"type": "Expression"
|
||||
},
|
||||
"cases": []
|
||||
"File": {
|
||||
"value": "@item().FileName",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"referenceName": "LakeFilesBinary",
|
||||
"type": "DatasetReference",
|
||||
"parameters": {
|
||||
"Directory": {
|
||||
"value": "@item().TargetDirectory",
|
||||
"type": "Expression"
|
||||
},
|
||||
"File": {
|
||||
"value": "@item().FileName",
|
||||
"type": "Expression"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user