Skip to content

Commit

Permalink
Merge pull request #21 from PerfectThymeTech/marvinbuss/add_end_time
Browse files Browse the repository at this point in the history
Add End Time to Data Model
  • Loading branch information
marvinbuss authored May 27, 2024
2 parents 1413d03 + 84fce7a commit d1a4124
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion code/datafactory/dataflow/IptvCuratedToKusto.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
" Topology4 as string,",
" Topology5 as string,",
" TvModel as string,",
" UserId as long",
" UserId as long,",
" EndTime as timestamp",
" ),",
" allowSchemaDrift: true,",
" validateSchema: false,",
Expand Down
4 changes: 3 additions & 1 deletion code/datafactory/dataflow/IptvRawToCurated.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"source(output(",
" app_version as string,",
" country as string,",
" end_time as timestamp 'yyyy-MM-dd\\'T\\'HH:mm:ss.SSS\\'Z\\'',",
" happiness_score as float,",
" hw_model as string,",
" service as string,",
Expand Down Expand Up @@ -91,7 +92,8 @@
" Topology4 = topology_4,",
" Topology5 = topology_5,",
" TvModel = tv_model,",
" UserId = user_id",
" UserId = user_id,",
" EndTime = end_time",
" ),",
" skipDuplicateMapInputs: true,",
" skipDuplicateMapOutputs: true) ~> RenameColumns",
Expand Down
3 changes: 2 additions & 1 deletion code/datafactory/dataflow/OttCuratedToKusto.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
" CommercilizationType as string,",
" DeviceVendor as string,",
" HappinessScore as float,",
" UserId as string",
" UserId as long,",
" EndTime as timestamp",
" ),",
" allowSchemaDrift: true,",
" validateSchema: false,",
Expand Down
6 changes: 4 additions & 2 deletions code/datafactory/dataflow/OttRawToCurated.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
" {COMMERCIALIZATION TYPE} as string,",
" {Device Vendor} as string,",
" {Happiness Score} as float,",
" {User ID} as string",
" {User ID} as long,",
" {End Time} as timestamp",
" ),",
" useSchema: false,",
" allowSchemaDrift: true,",
Expand All @@ -87,7 +88,8 @@
" CommercilizationType = {COMMERCIALIZATION TYPE},",
" DeviceVendor = {Device Vendor},",
" HappinessScore = {Happiness Score},",
" UserId = {User ID}",
" UserId = {User ID},",
" EndTime = {End Time}",
" ),",
" skipDuplicateMapInputs: true,",
" skipDuplicateMapOutputs: true) ~> RenameColumns",
Expand Down
2 changes: 1 addition & 1 deletion code/datafactory/pipeline/TestIptvRawToCurated.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
},
"sourceFolderPath": {
"type": "string",
"defaultValue": "iptv"
"defaultValue": "iptv/0156490b-efbe-4a27-af08-a237669f91cc"
},
"sourceFileName": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion code/datafactory/pipeline/TestOttRawToCurated.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
},
"sourceFolderPath": {
"type": "string",
"defaultValue": "ott"
"defaultValue": "ott/751cb63e-ce65-4f73-9894-6b1bdb8b7e1d"
},
"sourceFileName": {
"type": "string",
Expand Down
4 changes: 3 additions & 1 deletion code/datamodel/operationaldb.kql
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
CommercilizationType: string,
DeviceVendor: string,
HappinessScore: real,
UserId: string
UserId: string,
EndTime: datetime
),
iptv_raw(
AppVersion: string,
Country: string,
EndTime: datetime,
HappinessScore: real,
HwModel: string,
Service: string,
Expand Down

0 comments on commit d1a4124

Please sign in to comment.