Weitere Àhnliche Inhalte
Ăhnlich wie Building Dynamic Pipelines in Azure Data Factory (Data Saturday Holland) (9)
Mehr von Cathrine Wilhelmsen (19)
KĂŒrzlich hochgeladen (20)
Building Dynamic Pipelines in Azure Data Factory (Data Saturday Holland)
- 3. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Building Dynamic Data Pipelines in Azure Data Factory
- 5. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
You are an
Azure Data Factory
developer
- 7. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
âŠthis is getting
pretty tediousâŠ
- 11. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Why not use dynamic solutions?
- 12. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
How dynamic should the solution be?
- 13. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
How dynamic should the solution be?
- 14. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
How do you make dynamic solutions?
1.
2.
3.
4.
- 18. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Passing Parameters
trigger
pipeline dataset
user
activity linked service
- 19. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Passing Parameters
trigger
pipeline dataset
user
activity linked service
pipeline
- 20. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Passing Parameters
trigger
pipeline dataset
user
activity linked service
data flow
- 21. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Passing Parameters
trigger
pipeline dataset
user
activity linked service
activity
- 22. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Passing Parameters
trigger
pipeline dataset
user
activity linked service
pipeline
activity
data flow
- 23. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Parameters
@pipeline().parameters.
@dataset().
@linkedService().
ParameterName
ParameterName
ParameterName
- 24. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Parameters
@pipeline().parameters.
@dataset().
@linkedService().
ParameterName
ParameterName
ParameterName
- 25. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Parameters
@pipeline().parameters.
@pipeline().DataFactory
@pipeline().TriggerTime
ParameterName
and System Variables
- 26. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Parameters
@pipeline().parameters.
@pipeline().DataFactory
@pipeline().TriggerTime
ParameterName
and System Variables
- 32. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Combining Strings
@concat
@{âŠ}
- 33. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
String Concatenation
@concat(
' TRUNCATE TABLE dbo. ',
pipeline().parameters.TableName
)
- 34. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
String Interpolation
TRUNCATE TABLE dbo.
@{pipeline().parameters.TableName}
- 35. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Combining Strings
String Concatenation String Interpolation
- 43. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Array Items
@item()
parts
@item()
colors
@item()
sets
- 46. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Object Items
{ "Name": "colors", "Extension": "csv" }
@item()
- 47. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Object Items
{ "Name": "colors", "Extension": "csv" }
@item().Name
- 48. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Object Items
@item().Name
parts
@item().Name
colors
@item().Name
sets
- 53. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Lookup Output
{
"firstRow" :
{
"Name" : "colors",
"Extension" : "csv"
}
}
{
"count" : "2",
"value" : [
{
"Name" : "parts",
"Extension" : "csv"
},
{
"Name" : "sets",
"Extension" : "csv"
}
]
}
- 54. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Lookup Output: First Row Only
{
"firstRow" :
{
"Name" : "colors",
"Extension" : "csv"
}
}
firstRow
- 55. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Lookup Output: First Row Only
{
"firstRow" :
{
"Name" : "colors",
"Extension" : "csv"
}
}
firstRow
.Name
- 56. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Lookup Output: All Rows
{
"count" : "2",
"value" : [
{
"Name" : "parts",
"Extension" : "csv"
},
{
"Name" : "sets",
"Extension" : "csv"
}
]
}
value
- 57. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Lookup Output: All Rows
{
"count" : "2",
"value" : [
{
"Name" : "parts",
"Extension" : "csv"
},
{
"Name" : "sets",
"Extension" : "csv"
}
]
}
value[1]
- 58. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Lookup Output: All Rows
{
"count" : "2",
"value" : [
{
"Name" : "parts",
"Extension" : "csv"
},
{
"Name" : "sets",
"Extension" : "csv"
}
]
}
value[1]
Name
- 59. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Lookup Output
@{activity('Lookup').output.firstRow.ColumnName}
@{activity('Lookup').output.value}
- 63. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
Branching and Chaining
Success Failure Completion Skipped
- 73. © 2019 Cathrine Wilhelmsen (hi@cathrinew.net)
@cathrinew
cathrinew.net
hi@cathrinew.net
thank you!