Skip to content

Commit d1a4124

Browse files
authored
Merge pull request #21 from PerfectThymeTech/marvinbuss/add_end_time
Add End Time to Data Model
2 parents 1413d03 + 84fce7a commit d1a4124

File tree

7 files changed

+16
-8
lines changed

7 files changed

+16
-8
lines changed

code/datafactory/dataflow/IptvCuratedToKusto.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
" Topology4 as string,",
5555
" Topology5 as string,",
5656
" TvModel as string,",
57-
" UserId as long",
57+
" UserId as long,",
58+
" EndTime as timestamp",
5859
" ),",
5960
" allowSchemaDrift: true,",
6061
" validateSchema: false,",

code/datafactory/dataflow/IptvRawToCurated.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"source(output(",
5151
" app_version as string,",
5252
" country as string,",
53+
" end_time as timestamp 'yyyy-MM-dd\\'T\\'HH:mm:ss.SSS\\'Z\\'',",
5354
" happiness_score as float,",
5455
" hw_model as string,",
5556
" service as string,",
@@ -91,7 +92,8 @@
9192
" Topology4 = topology_4,",
9293
" Topology5 = topology_5,",
9394
" TvModel = tv_model,",
94-
" UserId = user_id",
95+
" UserId = user_id,",
96+
" EndTime = end_time",
9597
" ),",
9698
" skipDuplicateMapInputs: true,",
9799
" skipDuplicateMapOutputs: true) ~> RenameColumns",

code/datafactory/dataflow/OttCuratedToKusto.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
" CommercilizationType as string,",
5353
" DeviceVendor as string,",
5454
" HappinessScore as float,",
55-
" UserId as string",
55+
" UserId as long,",
56+
" EndTime as timestamp",
5657
" ),",
5758
" allowSchemaDrift: true,",
5859
" validateSchema: false,",

code/datafactory/dataflow/OttRawToCurated.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
" {COMMERCIALIZATION TYPE} as string,",
6161
" {Device Vendor} as string,",
6262
" {Happiness Score} as float,",
63-
" {User ID} as string",
63+
" {User ID} as long,",
64+
" {End Time} as timestamp",
6465
" ),",
6566
" useSchema: false,",
6667
" allowSchemaDrift: true,",
@@ -87,7 +88,8 @@
8788
" CommercilizationType = {COMMERCIALIZATION TYPE},",
8889
" DeviceVendor = {Device Vendor},",
8990
" HappinessScore = {Happiness Score},",
90-
" UserId = {User ID}",
91+
" UserId = {User ID},",
92+
" EndTime = {End Time}",
9193
" ),",
9294
" skipDuplicateMapInputs: true,",
9395
" skipDuplicateMapOutputs: true) ~> RenameColumns",

code/datafactory/pipeline/TestIptvRawToCurated.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
},
114114
"sourceFolderPath": {
115115
"type": "string",
116-
"defaultValue": "iptv"
116+
"defaultValue": "iptv/0156490b-efbe-4a27-af08-a237669f91cc"
117117
},
118118
"sourceFileName": {
119119
"type": "string",

code/datafactory/pipeline/TestOttRawToCurated.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
},
114114
"sourceFolderPath": {
115115
"type": "string",
116-
"defaultValue": "ott"
116+
"defaultValue": "ott/751cb63e-ce65-4f73-9894-6b1bdb8b7e1d"
117117
},
118118
"sourceFileName": {
119119
"type": "string",

code/datamodel/operationaldb.kql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
CommercilizationType: string,
1414
DeviceVendor: string,
1515
HappinessScore: real,
16-
UserId: string
16+
UserId: string,
17+
EndTime: datetime
1718
),
1819
iptv_raw(
1920
AppVersion: string,
2021
Country: string,
22+
EndTime: datetime,
2123
HappinessScore: real,
2224
HwModel: string,
2325
Service: string,

0 commit comments

Comments
 (0)